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
Because we funnelled the read state functions through read_state on the contract size the result had to be raw bytes, therefore encoded on the runtime and decoded in the contract. The read state functions are now called specifically and therefore the result can be its type (e.g. Balance). By refactoring it prevents the pop api having to decode the read state results which can decrease the contract size.
With the current contract it decreases it from 7.1K to 6.8K (don't compare with the psp22 contract as the logic implemented is not equal).
Because we funnelled the read state functions through
read_state
on the contract size the result had to be raw bytes, therefore encoded on the runtime and decoded in the contract. The read state functions are now called specifically and therefore the result can be its type (e.g.Balance
). By refactoring it prevents the pop api having to decode the read state results which can decrease the contract size.With the current contract it decreases it from 7.1K to 6.8K (don't compare with the psp22 contract as the logic implemented is not equal).
In stead of:
We do:
The text was updated successfully, but these errors were encountered: