You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now when we have somethingReturn and want to potentially abi encode it back, there is no direct way, one way is to use somethingCall::abi_encode_returns() but this wont accept the somethingReturn value directly and throws errors for impl bounds are not met.
a workaround is to deconstruct the somethingReturn value when calling the abi encode like: somethingCall::abi_encode_returns(&(somethingReturn.field1, somethingReturn.field2, ...))
but this is not a really good API, so an improvement would be appreciated so we can just abi encode a return type as normally we encode any SollCall value.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Component
sol-types, sol! macro
Describe the feature you would like
right now when we have
somethingReturn
and want to potentially abi encode it back, there is no direct way, one way is to usesomethingCall::abi_encode_returns()
but this wont accept the somethingReturn value directly and throws errors for impl bounds are not met.a workaround is to deconstruct the somethingReturn value when calling the abi encode like:
somethingCall::abi_encode_returns(&(somethingReturn.field1, somethingReturn.field2, ...))
but this is not a really good API, so an improvement would be appreciated so we can just abi encode a return type as normally we encode any SollCall value.
Additional context
No response
The text was updated successfully, but these errors were encountered: