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
We've had a meeting with the compiler team where we agreed to the following:
When returning or logging, vectors cannot be nested in other types.
retd will be used to return vector data -- i.e. vector elements will be contained in the ReturnData receipt.
logging a vector will log its elements.
Currently, we've adapted the SDK to throw a compile-time error if it detects the usage of vectors in the output type of a contract method.
If somebody should circumvent that and call ABIDecoder::decode... on a vector or a type containing one, the SDK will panic with an appropriate message.
We've had a meeting with the compiler team where we agreed to the following:
retd
will be used to return vector data -- i.e. vector elements will be contained in theReturnData
receipt.log
ging a vector will log its elements.Currently, we've adapted the SDK to throw a compile-time error if it detects the usage of vectors in the output type of a contract method.
If somebody should circumvent that and call
ABIDecoder::decode...
on a vector or a type containing one, the SDK will panic with an appropriate message.Blocked -- waiting for support from the compiler.
Related:
FuelLabs/sway#2900
#600
The text was updated successfully, but these errors were encountered: