Skip to content

Commit

Permalink
Update payable.md - transferred balance to value
Browse files Browse the repository at this point in the history
transferred_balance was renamed to transferred_value in use-ink/ink#1063
  • Loading branch information
freespirit committed Jul 22, 2023
1 parent 8ede0ba commit 163a1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/macros-attributes/payable.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ mod flipper {
```rust
#[ink(message, payable)]
pub fn pay_me(&self) {
let _transferred = self.env().transferred_balance();
let _transferred = self.env().transferred_value();
}
```

Expand Down

0 comments on commit 163a1c4

Please sign in to comment.