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
If permission is not added, an error will occur when the contract is upgraded and destroyed.
This is because it calls the ContractManagement native contract, but does not declare permissions.
Solutions:
The compiler automatically adds permissions when it detects code that calls a native contract.
Add ContractManagement to the permissions by default.
Do nothing, Let the developer add it manually.
Let the developer add it manually. And permissions supports adding the contract name of the native contract, because there is no guarantee that the hash of the native contract will not change (it has already changed n times).
Which is better?
The text was updated successfully, but these errors were encountered:
If permission is not added, an error will occur when the contract is upgraded and destroyed.
This is because it calls the
ContractManagement
native contract, but does not declare permissions.Solutions:
Which is better?
The text was updated successfully, but these errors were encountered: