@dfns/lib-viem 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -92,13 +92,13 @@ class DfnsWallet {
92
92
  if (this.metadata.boundToEvmNetwork) {
93
93
  const res = await this.dfnsClient.wallets.generateSignature({
94
94
  walletId: this.metadata.id,
95
- body: { kind: 'Transaction', transaction: serializer(transaction) },
95
+ body: { kind: 'Transaction', transaction: await serializer(transaction) },
96
96
  });
97
97
  assertSigned(res);
98
98
  return serializer(transaction, extractSignature(res));
99
99
  }
100
100
  else {
101
- const hash = (0, viem_1.keccak256)(serializer(transaction));
101
+ const hash = (0, viem_1.keccak256)(await serializer(transaction));
102
102
  const signature = await this.signHash(hash);
103
103
  return serializer(transaction, signature);
104
104
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@dfns/lib-viem",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "peerDependencies": {
5
5
  "@noble/curves": "^1.0.0",
6
6
  "viem": "^2.0.0",
7
- "@dfns/sdk": "0.8.2"
7
+ "@dfns/sdk": "0.8.3"
8
8
  },
9
9
  "dependencies": {
10
10
  "buffer": "^6.0.3",