mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 13:38:38 +01:00
[solidity/en] Fixed #2873
This commit is contained in:
parent
a8ad68aede
commit
e27533f7d1
@ -262,7 +262,7 @@ Bank b = Bank({
|
|||||||
// or
|
// or
|
||||||
Bank c = Bank(msg.sender, 5);
|
Bank c = Bank(msg.sender, 5);
|
||||||
|
|
||||||
c.amount = 5; // set to new value
|
c.balance = 5; // set to new value
|
||||||
delete b;
|
delete b;
|
||||||
// sets to initial value, set all variables in struct to 0, except mappings
|
// sets to initial value, set all variables in struct to 0, except mappings
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user