Hot answers tagged

1

From the Yellow paper documentation of the LOG opcodes the format is: stack[0] pointer memory stack[1] size memory stack[2] first topic stack[3] second topic & so on From your capture the stack is reversed stack: [ '0xd0e30db0', '0x3d2', '0x7a250d5630b4cf539739df2c5dacb4c659f2488d', '...


1

A bit simpler: function paddedToChecksumAddress(address) { if (address.slice(0, 2) === '0x') address = address.slice(2) while (address.slice(0, 2) === '00') address = address.slice(2) return web3.utils.toChecksumAddress('0x' + address) } Edit: web3.eth.abi.decodeParameter('address', address) is the correct way


Only top voted, non community-wiki answers of a minimum length are eligible