Skip to content

Is "storage.balance" a globally available storage property? #3665

Answered by otrho
PaulRBerg asked this question in Q&A
Discussion options

You must be logged in to vote

storage.balance is referring to a storage variable as per this section. It looks like it might be good to update the earlier example you're referring to to include a storage declaration:

storage {
    balance: u64  = 0
}

OTOH maybe it was left out to try to avoid introducing too many new concepts at once. @mohammadfawaz @Braqzen

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@PaulRBerg
Comment options

@Braqzen
Comment options

@PaulRBerg
Comment options

@Braqzen
Comment options

@PaulRBerg
Comment options

Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants