Skip to content

Commit

Permalink
fix: transfer snippet js (#2180)
Browse files Browse the repository at this point in the history
  • Loading branch information
flmel authored Jul 25, 2024
1 parent 81b0700 commit 478905f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/2.build/2.smart-contracts/anatomy/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can send $NEAR from your contract to any other account on the network. The G
class Contract{
@call({})
transfer({ to, amount }: { to: AccountId, amount: bigint }) {
NearPromise.new(to).transfer(amount);
return NearPromise.new(to).transfer(amount);
}
}
```
Expand Down

0 comments on commit 478905f

Please sign in to comment.