Skip to content

Commit f7f8b3c

Browse files
committed
add ffi-c-tests github workflow with the validation headers job
1 parent 2d14104 commit f7f8b3c

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,8 @@ jobs:
9090
path: ${{ runner.temp }}/dashd-test-logs/
9191
retention-days: 7
9292
if-no-files-found: ignore
93+
- name: Validate headers
94+
if: matrix.group == 'ffi' && inputs.os == 'ubuntu-latest'
95+
run: |
96+
sudo apt update && sudo apt install -y build-essential
97+
bash ffi-c-tests/validate-headers.sh

key-wallet-ffi/src/transaction.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,9 +1003,13 @@ impl From<FFIAssetLockFundingType> for AssetLockFundingType {
10031003
match ffi {
10041004
FFIAssetLockFundingType::IdentityRegistrationFundingType => Self::IdentityRegistration,
10051005
FFIAssetLockFundingType::IdentityTopUpFundingType => Self::IdentityTopUp,
1006-
FFIAssetLockFundingType::IdentityTopUpNotBoundFundingType => Self::IdentityTopUpNotBound,
1006+
FFIAssetLockFundingType::IdentityTopUpNotBoundFundingType => {
1007+
Self::IdentityTopUpNotBound
1008+
}
10071009
FFIAssetLockFundingType::IdentityInvitationFundingType => Self::IdentityInvitation,
1008-
FFIAssetLockFundingType::AssetLockAddressTopUpFundingType => Self::AssetLockAddressTopUp,
1010+
FFIAssetLockFundingType::AssetLockAddressTopUpFundingType => {
1011+
Self::AssetLockAddressTopUp
1012+
}
10091013
FFIAssetLockFundingType::AssetLockShieldedAddressTopUpFundingType => {
10101014
Self::AssetLockShieldedAddressTopUp
10111015
}

0 commit comments

Comments
 (0)