Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8c20c41a8 |
+1
-1
@@ -45,7 +45,7 @@ void hi( name user ) {
|
||||
}
|
||||
```
|
||||
|
||||
Another example can be found in the [Tic Tac Toe Tutorial](https://docs.eosnetwork.com/welcome/latest/tutorials/tic-tac-toe-game-contract#action-handler---move).
|
||||
Another example can be found in the [Tic Tac Toe Tutorial](https://docs.eosnetwork.com/docs/latest/tutorials/tic-tac-toe-game-contract#action-handler---move).
|
||||
|
||||
### 2. Use require_auth
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
|
||||
## Procedure
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
* A multi-index table `testtab` along with its `test_table` data structure, its mandatory primary index, and the type alias definition `test_table_t`. Please see [How To Define A Primary Index](./how-to-define-a-primary-index) to set up these prerequisites.
|
||||
|
||||
## Procedure
|
||||
|
||||
@@ -16,7 +16,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
|
||||
## Procedure
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
* A multi-index `testab` table instance which stores `user` objects indexed by the primary key which is of type `eosio::name`. Consult the section [How to instantiate a multi-index table](./how-to-instantiate-a-multi-index-table.md) to learn how to set it up.
|
||||
|
||||
## Procedure
|
||||
|
||||
@@ -18,7 +18,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
* A multi-index `testab` table instance which stores `user` objects indexed by the primary key which is of type `eosio::name`. Consult the section [How to instantiate a multi-index table](./how-to-instantiate-a-multi-index-table.md) to learn how to set it up.
|
||||
|
||||
## Procedure
|
||||
|
||||
@@ -16,7 +16,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
|
||||
## Procedure
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
* A multi-index `testab` table instance which stores `user` objects indexed by the primary key which is of type `eosio::name` and a secondary index for data member `secondary` of type `eosio::name` accessible through `by_secondary()` method. Consult the section [How to define a secondary index](./how-to-define-a-secondary-index) to learn how to set it up.
|
||||
|
||||
## Procedure
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
* A multi-index `testab` table instance which stores `user` objects indexed by the primary key which is of type `eosio::name`. Consult the section [How to instantiate a multi-index table](./how-to-instantiate-a-multi-index-table) to learn how to set it up.
|
||||
|
||||
## Procedure
|
||||
|
||||
@@ -17,7 +17,7 @@ See the following code reference:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/),
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/),
|
||||
* A multi-index `testab` table instance which stores `user` objects indexed by the primary key which is of type `eosio::name`. Consult the section [How to instantiate a multi-index table](./how-to-instantiate-a-multi-index-table) to learn how to set it up.
|
||||
|
||||
## Procedure
|
||||
|
||||
@@ -17,7 +17,7 @@ See the following code reference guide for action wrapper:
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/).
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/).
|
||||
* A smart contract named `multi_index_example`, defined in file `multi_index_example.hpp`.
|
||||
* An action `mod` which modifies the integer value `n` stored for row with key `user`.
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ In order to accomplish this, use the `return` statement and pass the desired ret
|
||||
|
||||
Make sure you have the following prerequisites in place:
|
||||
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/welcome/latest/getting-started/).
|
||||
* An Antelope development environment, for details consult the [Get Started Guide](https://docs.eosnetwork.com/docs/latest/getting-started/).
|
||||
* A smart contract, let’s call it `smrtcontract`, which builds without error.
|
||||
* An action, let’s call it `checkwithrv`, from which you want to return a value of a user defined type `action_response`.
|
||||
|
||||
|
||||
@@ -164,4 +164,4 @@ assertion failure with message: system contract must first be initialized
|
||||
```
|
||||
|
||||
The failure is stating that `eosio.system` `init` action was not called yet. The `init` action is implemented by the `void init(uint64_t, symbol)` function. The first parameter is the version, this should always be `0` for now, until a new version of `init` will be created that handles more information.
|
||||
The second parameter is the system's symbol (i.e. for main net this is `EOS`). If you followed the [BIOS Boot Sequence](https://docs.eosnetwork.com/welcome/latest/tutorials/bios-boot-sequence) tutorial and created a system with the default symbol `SYS` then `SYS` shall be used as the system's symbol in the `init` action. It is whatever symbol you as the chain creator want to use in your `Antelope` based blockchain.
|
||||
The second parameter is the system's symbol (i.e. for main net this is `EOS`). If you followed the [BIOS Boot Sequence](https://docs.eosnetwork.com/docs/latest/tutorials/bios-boot-sequence) tutorial and created a system with the default symbol `SYS` then `SYS` shall be used as the system's symbol in the `init` action. It is whatever symbol you as the chain creator want to use in your `Antelope` based blockchain.
|
||||
|
||||
Reference in New Issue
Block a user