Skip to content

Commit

Permalink
fix: prepend 0x to make it byte slice
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmeanjan committed Apr 26, 2021
1 parent 26b573a commit 077db33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ export const getERC1155ChainExitLog = ({
overrideSig || erc1155ChainExitEventSig,
to
],
abi.encode(['uint256', 'uint256', 'bytes'], ['0x' + tokenId.toString(16), '0x' + amount.toString(16), Buffer.from(toUtf8Bytes(data || 'Hello World')).toString('hex')])
abi.encode(['uint256', 'uint256', 'bytes'], ['0x' + tokenId.toString(16), '0x' + amount.toString(16), `0x${Buffer.from(toUtf8Bytes(data || 'Hello World')).toString('hex')}`])
])
}

0 comments on commit 077db33

Please sign in to comment.