Skip to content

Commit

Permalink
update lords contract
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Oct 4, 2023
1 parent dd3084d commit 81900aa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions contracts/lords/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,32 @@ mod ERC20 {
self._mint(recipient, amount);
}

/// Camel case support.
/// See [total_supply](total-supply).
#[external(v0)]
fn totalSupply(self: @ContractState) -> u256 {
total_supply(self)
}

/// Camel case support.
/// See [balance_of](balance_of).
#[external(v0)]
fn balanceOf(self: @ContractState, account: ContractAddress) -> u256 {
balance_of(self, account)
}

/// Camel case support.
/// See [transfer_from](transfer_from).
#[external(v0)]
fn transferFrom(
ref self: ContractState,
sender: ContractAddress,
recipient: ContractAddress,
amount: u256
) -> bool {
transfer_from(ref self, sender, recipient, amount)
}

//
// Internal
//
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const contracts = {
},
goerli: {
game: "0x01263ecbc05e28d1e99f531894838db10b90cfcdd39d020642da1747a733a37a",
lords: "0x02a4174abc7c953030401679bde67e560b9e2724d5d71ffbaa488965dd36137a",
lords: "0x05e367ac160e5f90c5775089b582dfc987dd148a5a2f977c49def2a6644f724b",
},
};

Expand Down

0 comments on commit 81900aa

Please sign in to comment.