Skip to content
Snippets Groups Projects
Commit 5c9a3269 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

update runtime

parent 20e4b444
No related branches found
No related tags found
No related merge requests found
Pipeline #35519 failed
......@@ -13,7 +13,7 @@ through on-chain governance mechanisms.
## User calls
There are **77** user calls from **21** pallets.
There are **78** user calls from **21** pallets.
### Account - 1
......@@ -835,22 +835,31 @@ Link an account to an identity
#### add_cert - 0
<details><summary><code>add_cert(issuer, receiver)</code></summary>
<details><summary><code>add_cert(receiver)</code></summary>
Taking 0.019 % of a block.
```rust
issuer: T::IdtyIndex
receiver: T::IdtyIndex
```
</details>
Add a new certification or renew an existing one
Add a new certification.
#### renew_cert - 3
<details><summary><code>renew_cert(receiver)</code></summary>
Taking 0.019 % of a block.
```rust
receiver: T::IdtyIndex
```
</details>
- `receiver`: the account receiving the certification from the origin
The origin must be allow to certify.
Renew an existing certification.
#### del_cert - 1
......
# Runtime errors
There are **172** errors from **35** pallets.
There are **174** errors from **35** pallets.
<ul>
<li>System - 0
......@@ -941,22 +941,22 @@ Already member, can not add membership.
<li>
<details>
<summary>
<code>CannotCertifySelf</code> - 0</summary>
Identity cannot certify itself.
<code>OriginMustHaveAnIdentity</code> - 0</summary>
Issuer of a certification must have an identity
</details>
</li>
<li>
<details>
<summary>
<code>IssuedTooManyCert</code> - 1</summary>
Identity has already issued the maximum number of certifications.
<code>CannotCertifySelf</code> - 1</summary>
Identity cannot certify itself.
</details>
</li>
<li>
<details>
<summary>
<code>IssuerNotFound</code> - 2</summary>
Issuer not found.
<code>IssuedTooManyCert</code> - 2</summary>
Identity has already issued the maximum number of certifications.
</details>
</li>
<li>
......@@ -973,6 +973,20 @@ Insufficient certifications received.
Identity has issued a certification too recently.
</details>
</li>
<li>
<details>
<summary>
<code>CertAlreadyExists</code> - 5</summary>
Can not add an already-existing cert
</details>
</li>
<li>
<details>
<summary>
<code>CertDoesNotExist</code> - 6</summary>
Can not renew a non-existing cert
</details>
</li>
</ul>
</li>
<li>Distance - 44
......
......@@ -25,7 +25,7 @@ pub async fn certify(client: &Client, from: AccountKeyring, to: AccountKeyring)
let from = from.to_account_id();
let to = to.to_account_id();
let issuer_index = client
let _issuer_index = client
.storage()
.at_latest()
.await
......@@ -51,9 +51,7 @@ pub async fn certify(client: &Client, from: AccountKeyring, to: AccountKeyring)
client
.tx()
.create_signed(
&gdev::tx()
.certification()
.add_cert(issuer_index, receiver_index),
&gdev::tx().certification().add_cert(receiver_index),
&signer,
BaseExtrinsicParamsBuilder::new(),
)
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment