@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.
- package/index.js +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