openethereum / pwasm-abi

Parity WASM Abi (Legacy and new)
Apache License 2.0
29 stars 17 forks source link

Bug in impl AbiType for Vec<T> #84

Open updogliu opened 5 years ago

updogliu commented 5 years ago

Version: 0.2.2

According to the spec, Vec<T> should be encoded as enc(k) enc([X[0], ..., X[k-1]]), when k is the length of the Vec<T>. However the current impl encodes it as enc(k, [X[0], ..., X[k-1]]).