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
docs: Fix variable name mismatch in constructor example (#505)
The code example for the Erc20 new constructor in the documentation contained a typo that would prevent it from compiling.
The function signature defined the input parameter as initial_value,but the function body attempted to use an undefined variable named initial_supply.
This change renames the parameter in the function signature from initial_value to initial_supply to match its usage throughout the function body. This makes the code example correct, consistent, and runnable.
0 commit comments