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 current section on smart contract upgradability in the documentation contains information on adding new functions. However, it is missing any info regarding the following:
Adding New Fields: How can developers incorporate new fields (storage variables) into an existing smart contract after deployment?
struct contract {
users: Vec<address>,
}
migrate to ↓
struct contract {
users: Vec<address>,
funds: Vec<u64>, // new field
}
Migrating Existing Fields: In scenarios where modifications are required to existing fields (e.g., changing data types, renaming)
The current section on smart contract upgradability in the documentation contains information on adding new functions. However, it is missing any info regarding the following:
migrate to ↓
migrate to ↓
The text was updated successfully, but these errors were encountered: