-
What is the viem equivalent to this from ethers.js? I don't see it in the docs. import { utils } from 'ethers';
// Instantiate an interface for decoding event logs
const iface = new utils.Interface([
'event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)'
]);
const parsedLog = iface.parseLog({
data: transferSingleLog?.data,
topics: transferSingleLog?.topics,
}); |
Beta Was this translation helpful? Give feedback.
Answered by
jxom
May 17, 2023
Replies: 1 comment
-
You'll be after |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jxom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll be after
decodeEventLog
.