Skip to content

Commit 663b589

Browse files
committed
fix
1 parent 689d3d8 commit 663b589

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/e2e/json-rpc/eth_call.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ describe('eth_call', function () {
3535

3636
// eth_call
3737
await driver.openNewPage(`http://127.0.0.1:8080`);
38-
const balanceOf = `0x${keccak256(
38+
const balanceOf = `0x${Buffer.from(keccak256(
3939
Buffer.from('balanceOf(address)'),
40-
).toString()}`;
40+
)).toString('hex')}`;
4141
const walletAddress = '0x5cfe73b6021e818b776b421b1c4db2474086a7e1';
4242
const request = JSON.stringify({
4343
jsonrpc: '2.0',

ui/pages/confirmations/components/transaction-alerts/transaction-alerts.stories.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const customTransaction = ({
4242
};
4343
// just simulate hash if not provided
4444
if (!props?.hash) {
45-
tx.hash = `0x${keccak256(Buffer.from(JSON.stringify(tx))).toString('hex')}`;
45+
tx.hash = `0x${Buffer.from(keccak256(Buffer.from(JSON.stringify(tx)))).toString('hex')}`;
4646
}
4747
return tx;
4848
};

0 commit comments

Comments
 (0)