Skip to content

Commit

Permalink
Update environment.md (#2312)
Browse files Browse the repository at this point in the history
Use term yoctoNEAR instead of NEAR for attached deposit for more clarity
  • Loading branch information
iliyanBachiyski authored Nov 18, 2024
1 parent af7c0a6 commit 3b7186b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/2.build/2.smart-contracts/anatomy/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Every method execution has an environment associated with information such as:
| Predecessor | `near.predecessorAccountId()` | Account ID that called this method |
| Current Account | `near.currentAccountId()` | Account ID of this smart contract |
| Signer | `near.signerAccountId()` | Account ID that signed the transaction leading to this execution |
| Attached Deposit | `near.attachedDeposit()` | Amount in NEAR attached to the call by the predecessor |
| Attached Deposit | `near.attachedDeposit()` | Amount in yoctoNEAR attached to the call by the predecessor |
| Account Balance | `near.accountBalance()` | Balance of this smart contract (including Attached Deposit) |
| Prepaid Gas | `near.prepaidGas()` | Amount of gas available for execution |
| Timestamp | `near.blockTimestamp()` | Current timestamp (number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC) |
Expand All @@ -47,7 +47,7 @@ Every method execution has an environment associated with information such as:
| Predecessor | `env::predecessor_account_id()` | Account ID that called this method |
| Current Account | `env::current_account_id()` | Account ID of this smart contract |
| Signer | `env::signer_account_id()` | Account ID that signed the transaction leading to this execution |
| Attached Deposit | `env::attached_deposit()` | Amount in NEAR attached to the call by the predecessor |
| Attached Deposit | `env::attached_deposit()` | Amount in yoctoNEAR attached to the call by the predecessor |
| Account Balance | `env::account_balance()` | Balance of this smart contract (including Attached Deposit) |
| Prepaid Gas | `env::prepaid_gas()` | Amount of gas available for execution |
| Timestamp | `env::block_timestamp()` | Current timestamp (number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC) |
Expand Down

0 comments on commit 3b7186b

Please sign in to comment.