Skip to content

Commit

Permalink
Merge pull request #404 from omahs/patch-2
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
Benson0224 authored Jan 24, 2025
2 parents 6b8420d + 4bb9534 commit 6071cfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/clients/wallet-cli-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ This command is used to assign permissions to other accounts, is utilized for **
* active: access to other features of accounts, and access that authorizes a certain feature. Block production authorization is not included if it's for SR purposes.
* witness: only for super representatives, block production authorization will be granted to one of the other users.

**NOTE** the parameter`Permission` must written in JSON format and entered in line. If the owner accountis not SR, then do not assign super representative permission.
**NOTE** the parameter`Permission` must written in JSON format and entered in line. If the owner account is not SR, then do not assign super representative permission.
```shell
wallet> updateaccountpermission TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 {"owner_permission":{"keys":[{"address":"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8","weight":1}],"threshold":1,"type":0,"permission_name":"owner"},"active_permissions":[{"operations":"7fff1fc0033e0000000000000000000000000000000000000000000000000000","keys":[{"address":"TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej","weight":1},{"address":"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE","weight":1}],"threshold":2,"type":2,"permission_name":"active12323"}]}
{
Expand Down Expand Up @@ -1222,7 +1222,7 @@ wallet> TriggerContract [ownerAddress] [contractAddress] [method] [args] [isHex]
```
* `OwnerAddress `The address of the account that initiated the transaction, optional, default value is the address of the login account.
* `ContractAddress` is the smart contarct address.
* `ContractAddress` is the smart contract address.
* `method` is the name of the function and parameters, please refer to the example below.
* `args` is a parameter for placeholding, pass '#' instead when `method` does not need extra parameters.
* `isHex` controls the format of the parameters method and args, whether they are in hex string or not.
Expand Down
4 changes: 2 additions & 2 deletions docs/contracts/contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ Through other two grpc message types CreateSmartContract and TriggerSmartContrac

There are two types of function according to whether any change will be made to the properties on the chain: constant function and inconstant function
Constant function uses view/pure/constant to decorate, will return the result on the node it is called and not be broadcasted in the form of a transaction
Inconstant function will be broadcasted in the form of a transaction while be called, the function will change the data on the chain, such as transfer, changing the value of the internal variables of contracts, etc.
Inconstant function will be broadcasted in the form of a transaction while being called, the function will change the data on the chain, such as transfer, changing the value of the internal variables of contracts, etc.

Note: If you use create command inside a contract (CREATE instruction), even use view/pure/constant to decorate the dynamically created contract function, this function will still be treated as inconstant function, be dealt in the form of transaction.

* **message calls**

Message calls can call the functions of other contracts, also can transfer TRX to the accounts of contract and none-contract. Like the common TRON triggercontract, Message calls have initiator, recipient, data, transfer amount, fees and return attributes. Every message call can generate a new one recursively. Contract can define the distribution of the remaining energy in the internal message call. If it comes with OutOfEnergyException in the internal message call, it will return false, but not error. In the meanwhile, only the gas sent with the internal message call will be consumed, if energy is not specified in call.value(energy), all the remaining energy will be used.
Message calls can call the functions of other contracts, also can transfer TRX to the accounts of contract and none-contract. Like the common TRON triggercontract, Message calls have initiator, recipient, data, transfer amount, fees and return attributes. Every message call can generate a new one recursively. Contract can define the distribution of the remaining energy in the internal message call. If it comes with OutOfEnergyException in the internal message call, it will return false, but not error. In the meantime, only the gas sent with the internal message call will be consumed, if energy is not specified in call.value(energy), all the remaining energy will be used.

* **delegate call/call code/library**

Expand Down

0 comments on commit 6071cfc

Please sign in to comment.