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
The dispatcher could be different from custom functions, bcz, for different functions, it has different return types which is hard to mock in rust, could be easier once we have the implementation of Vector, thus, we can just use Vec<u8> as the output for all functions
functions can return the count of the output on stack, and then, in the return function of the dispatcher, it returns the specified stack items
Solution
No response
The text was updated successfully, but these errors were encountered:
Describe the feature
checks everywhere is actually not possible, once there is control flow in function, the stack/memory output could be unpredictable
EDITED
https://docs.soliditylang.org/en/v0.8.15/assembly.html#memory-management
https://doc.rust-lang.org/reference/type-layout.html#size-and-alignment
The dispatcher
The dispatcher could be different from custom functions, bcz, for different functions, it has different return types which is hard to mock in rust, could be easier once we have the implementation of Vector, thus, we can just use
Vec<u8>
as the output for all functionsfunctions can return the count of the output on stack, and then, in the return function of the dispatcher, it returns the specified stack items
Solution
No response
The text was updated successfully, but these errors were encountered: