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
for the case using dynamic parameters in internal functions:
pubfnfoo(arr:String){// here we are using `calldataload`bar(arr)}fnbar(arr:String){// do sth ...}
Solution
We are loading parameters of internal function from memory in zink, the memory slots are allocated in compilation but for dynamic variables, we'll use the pre-calculated slot & MSIZE to implement this
NOTE: if the above solution doesn't work, try to figure out a better one, otherwise totally align to solidity's implementation
The text was updated successfully, but these errors were encountered:
Describe the feature
for the case using dynamic parameters in internal functions:
Solution
We are loading parameters of internal function from memory in zink, the memory slots are allocated in compilation but for dynamic variables, we'll use the pre-calculated slot &
MSIZE
to implement thisNOTE: if the above solution doesn't work, try to figure out a better one, otherwise totally align to solidity's implementation
The text was updated successfully, but these errors were encountered: