mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 20:40:42 +02:00
Fixed misnamed contract initializer (#2650)
References: https://github.com/adambard/learnxinyminutes-docs/issues/2642
This commit is contained in:
@@ -62,7 +62,7 @@ contract SimpleBank { // CapWords
|
|||||||
event LogDepositMade(address accountAddress, uint amount);
|
event LogDepositMade(address accountAddress, uint amount);
|
||||||
|
|
||||||
// Constructor, can receive one or many variables here; only one allowed
|
// Constructor, can receive one or many variables here; only one allowed
|
||||||
function AcmeBank() {
|
function SimpleBank() {
|
||||||
// msg provides details about the message that's sent to the contract
|
// msg provides details about the message that's sent to the contract
|
||||||
// msg.sender is contract caller (address of contract creator)
|
// msg.sender is contract caller (address of contract creator)
|
||||||
owner = msg.sender;
|
owner = msg.sender;
|
||||||
|
Reference in New Issue
Block a user