ethjs-abi
ethjs-abi copied to clipboard
Result object is now an array, also with named properties
the ensures the result is iterable, useful for easy destructuring
Fixes https://github.com/ethjs/ethjs/issues/36
array with properties example
> x=[]
[]
> x.a=1
1
> x.b=2
2
> x
[ a: 1, b: 2 ]
> x.push('a')
1
> x.push('b')
2
> x.push('c')
3
> x
[ 'a', 'b', 'c', a: 1, b: 2 ]
I’d suggest using the ethers encoding and decoding library for this.
It’s been a while since I’ve maintained this package.
Sent from my iPhone
On Apr 19, 2020, at 1:42 AM, kumavis [email protected] wrote:
array with properties example
x=[] [] x.a=1 1 x.b=2 2 x [ a: 1, b: 2 ] x.push('a') 1 x.push('b') 2 x.push('c') 3 x [ 'a', 'b', 'c', a: 1, b: 2 ] — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.