Skip to content

Commit ca622cb

Browse files
authored
Merge pull request #195 from BitGo/BTC-3108-add-wasm-dot-to-ci
feat: remove unsafe any cast in wasm-dot builder
2 parents 49519d5 + 10fbc04 commit ca622cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/wasm-dot/js/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ import type { TransactionIntent, BuildContext } from "./types";
7474
*/
7575
export function buildTransaction(intent: TransactionIntent, context: BuildContext): DotTransaction {
7676
const inner = BuilderNamespace.buildTransaction(intent, context);
77-
return DotTransaction.fromInner(inner as any);
77+
return DotTransaction.fromInner(inner);
7878
}
7979

8080
// Re-export types for convenience

packages/wasm-dot/src/builder/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ mod tests {
205205
"specName": "polkadot",
206206
"specVersion": 9150,
207207
"txVersion": 9,
208-
"metadata": [0]
208+
"metadata": "0x00"
209209
},
210210
"validity": {
211211
"firstValid": 1000,

0 commit comments

Comments
 (0)