opengsn / gsn

GSN v3.0.0-beta.10 - Ethereum Gas Station Network
https://opengsn.org/
592 stars 210 forks source link

Rejected relayTransaction call with reason: value at index ${ index } unnamed #983

Closed numpde closed 1 year ago

numpde commented 1 year ago

The issue comes from here: https://github.com/opengsn/gsn/blob/6c876350d627b867601d28c752caec0af3b2b9be/packages/common/src/LightTruffleContract.ts#L23

This seemed to fix it:

if (typeof ret.toArray === 'function') { // ethers.js v6 Contract treats all arrays as 'proxy' breaking our 'retype'
    return retypeItem(abiOutput, [...ret]);
}

Not opening a PR since I don't really understand what's going on.

AgentCosmic commented 1 year ago

Also getting the same error, but didn't try to fix. Have to use EthersV5 with window.ethereum for now.

viac92 commented 1 year ago

same issue

forshtat commented 1 year ago

The LightTruffleContract.ts file has been removed completely in the new release (3.0.0-beta.9).

Please check it out and tell me if the issue is resolved and if the GSN client library is stable. Thank you!

viac92 commented 1 year ago

Now it's working, thank you!