Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/macros-attributes/contract_ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ inferred from the root contract.
```rust
#[ink::contract_ref(abi = "sol")]
pub trait Erc20 {
Returns the total supply of the ERC-20 smart contract.
/// Returns the total supply of the ERC-20 smart contract.
#[ink(message)]
fn total_supply(&self) -> ink::U256;

Transfers balance from the caller to the given address.
/// Transfers balance from the caller to the given address.
#[ink(message)]
fn transfer(&mut self, amount: ink::U256, to: ink::Address) -> bool;

Expand Down