Skip to content

Commit 8f026fb

Browse files
committed
chore(sdk-coin-dot): update wasm-dot with metadata field rename
Updates wasm-dot package that renames metadataHex to metadata, allowing material objects to be passed directly without mapping. TICKET: BTC-0
1 parent a230fb3 commit 8f026fb

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed
13 Bytes
Binary file not shown.

modules/sdk-coin-dot/test/unit/wasmComparison.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ describe('WASM vs JS Transaction Builder Comparison', () => {
2121

2222
// Get material from the same source as JS builder to ensure matching metadata
2323
const config = buildTestConfig();
24-
const jsMaterial = utils.getMaterial(config);
24+
const material = utils.getMaterial(config);
2525

26-
// Build context for wasm-dot using the same metadata as JS builder
27-
// Note: JS uses 'metadata', WASM uses 'metadataHex'
26+
// Build context for wasm-dot using the same material as JS builder
2827
const wasmContext = (nonceValue: number = nonce): BuildContext => ({
2928
sender: sender.address,
3029
nonce: nonceValue,
31-
material: { ...jsMaterial, metadataHex: jsMaterial.metadata },
30+
material,
3231
validity: { firstValid, maxDuration },
3332
referenceBlock,
3433
});

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@
15731573
"@bitgo/sdk-core" "^36.30.0"
15741574
"@bitgo/sdk-lib-mpc" "^10.9.0"
15751575
"@bitgo/statics" "^58.24.0"
1576-
"@bitgo/wasm-dot" "file:../../../BitGoWasm-dot/packages/wasm-dot/bitgo-wasm-dot-0.0.1.tgz"
1576+
"@bitgo/wasm-dot" "file:bitgo-wasm-dot-0.0.1.tgz"
15771577
"@polkadot/api" "14.1.1"
15781578
"@polkadot/api-augment" "14.1.1"
15791579
"@polkadot/keyring" "13.3.1"
@@ -2405,10 +2405,10 @@
24052405
io-ts "npm:@bitgo-forks/io-ts@2.1.4"
24062406
io-ts-types "^0.5.19"
24072407

2408-
"@bitgo/wasm-dot@file:bitgo-wasm-dot-0.0.1.tgz":
2408+
"@bitgo/wasm-dot@file:../../../BitGoWasm-dot/packages/wasm-dot/bitgo-wasm-dot-0.0.1.tgz":
24092409
version "0.0.1"
2410-
resolved "file:modules/sdk-coin-dot/bitgo-wasm-dot-0.0.1.tgz"
2411-
integrity sha512-0hbjwgGdUKTaEqj3CqS0i7v4uPVLYQ6uq/wexXI06+Lo+F/cqvOtCuvaIZ1ir17GMW4hEFGabTkPp0QPg7ljGw==
2410+
resolved "file:../BitGoWasm-dot/packages/wasm-dot/bitgo-wasm-dot-0.0.1.tgz"
2411+
integrity sha512-TWX76MqUJk8L8nUhu7S4Bjg6ihs7PW9bJNroquFkbJN9iJZs26FeGlGnpuHRKyt1hPA6O59hZNZ2okwAvMqX6w==
24122412

24132413
"@bitgo/wasm-utxo@^1.32.0":
24142414
version "1.29.0"

0 commit comments

Comments
 (0)