diff --git a/docs/1.concepts/web3/near.md b/docs/1.concepts/web3/near.md index 2bc3a0d870c..852d9fd1851 100644 --- a/docs/1.concepts/web3/near.md +++ b/docs/1.concepts/web3/near.md @@ -104,7 +104,7 @@ Throughout this section, we’ve discussed how to call a smart contract from a c Looks simple enough, but there are few gotchas: - In order to provide a call status (success or failure) and a return value to the calling contract, a callback method should be called, so there’s no single activation of ContractA. Instead, an entry method is called first by the user, and then a callback is invoked in response to cross-contract call completion. -- Transaction status is determined by the success or failure of a first method call. For example, if a ContractB.methodB or ContractA.methodACb call fails, the transaction will still be considered successful. This means that to ensure proper rollbacks in case of expected failures, custom rollback code must be written in the ContractA.methodACb, and the callback method itself must not fail at all. Otherwise, smart contract state might be left inconsistent. +- Transaction status is determined by the success or failure of a first function call. For example, if a ContractB.methodB or ContractA.methodACb call fails, the transaction will still be considered successful. This means that to ensure proper rollbacks in case of expected failures, custom rollback code must be written in the ContractA.methodACb, and the callback method itself must not fail at all. Otherwise, smart contract state might be left inconsistent. - Cross-contract calls must have gas attached by the calling contract. Total available gas is attached to a transaction by a calling user, and distributed inside the call chain by contracts. For example, if 15TGas are attached by the user, ContractA may reserve 5TGas for itself and pass the rest to ContractB. All unspent gas will be refunded back to the user. diff --git a/docs/2.develop/contracts/serialization.md b/docs/2.develop/contracts/serialization.md index a5b71603de5..6267ccda376 100644 --- a/docs/2.develop/contracts/serialization.md +++ b/docs/2.develop/contracts/serialization.md @@ -12,7 +12,7 @@ from their complex representation into simpler ones. This process of translating **complex objects into simpler single-value** representations is called **serialization**. NEAR uses two serialization formats: [JSON](https://www.json.org/json-en.html) and [Borsh](https://borsh.io/). -1. [JSON](https://www.json.org/json-en.html) is used to serialize the contract's input/output during a method call +1. [JSON](https://www.json.org/json-en.html) is used to serialize the contract's input/output during a function call 2. [Borsh](https://borsh.io/) is used to serialize the contract's state. --- diff --git a/docs/2.develop/integrate/frontend.md b/docs/2.develop/integrate/frontend.md index 518d8f652d7..596ed2808aa 100644 --- a/docs/2.develop/integrate/frontend.md +++ b/docs/2.develop/integrate/frontend.md @@ -278,7 +278,7 @@ function formatAmount(amount) { NEAR API JS does not limit itself to simply calling methods in a contract. In fact, you can use it to transform your web-app into a rich user experience. While we will not cover these topics in depth, it is important for you to know that with NEAR API JS you can also: - **[Sign and verify messages](https://github.com/near/near-api-js/blob/master/packages/cookbook/utils/verify-signature.js)**: this is very useful to prove that a message was created by the user. -- **[Create batch transactions](https://github.com/near/near-api-js/tree/master/packages/cookbook/transactions/batch-transactions.js)**: this enables to link multiple [actions](/develop/contracts/actions) (e.g. multiple method calls). If one of the transactions fails, then they are all reverted. +- **[Create batch transactions](https://github.com/near/near-api-js/tree/master/packages/cookbook/transactions/batch-transactions.js)**: this enables to link multiple [actions](/develop/contracts/actions) (e.g. multiple function calls). If one of the transactions fails, then they are all reverted. - **[Create accounts](https://github.com/near/near-api-js/tree/master/packages/cookbook/accounts/create-testnet-account.js)**: deploy accounts for your users! Check the [cookbook](/tools/near-api-js/cookbook) to learn how to supercharge your webapp. diff --git a/docs/2.develop/relevant-contracts/ft.md b/docs/2.develop/relevant-contracts/ft.md index d8aecbe5f7c..5a42240ed5f 100644 --- a/docs/2.develop/relevant-contracts/ft.md +++ b/docs/2.develop/relevant-contracts/ft.md @@ -125,7 +125,7 @@ In order to send a fungible token to an account, both the sender and receiver mu
error.cause.info
for more details