Closed ordinatorix closed 3 years ago
Already available in utils branch (Lastest pre-release).
Or you can encode function signature and data separately.
Use EthUtils.id(functionSig)
for function signature and abiCoder.encode(types, values)
for data.
Already available in utils branch (Lastest pre-release).
Awesome, that worked! Thanks
how to implement function encoder?
interface.encodeFunctionData( fragment [ , values ] ) ⇒ string< DataHexString >
or is there a way to achieve the same with [defaultAbiCoder]