Skip to content

Commit

Permalink
applying prettier to entire repo (#6063)
Browse files Browse the repository at this point in the history
Co-authored-by: Polkadot-Kusama Bot <[email protected]>
  • Loading branch information
github-actions[bot] and Polkadot-Kusama Bot authored Jul 8, 2024
1 parent 0f44efd commit 69955b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions docs/build/build-transaction-construction.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,33 @@ function from the Balances pallet will take:
- `dest`: Destination address
- `#[compact] value`: Number of tokens (compact encoding)

Refer to [the protocol specifications](https://spec.polkadot.network/id-extrinsics), for the concrete specifications and types to build a transaction.
Refer to [the protocol specifications](https://spec.polkadot.network/id-extrinsics), for the
concrete specifications and types to build a transaction.

**Mode and MetadataHash**

The mode and metadataHash fields were introduced in transaction construction to support the optional [`CheckMetadataHash` Signed Extension](https://github.com/polkadot-fellows/RFCs/blob/main/text/0078-merkleized-metadata.md). This enables trustless metadata verification by allowing the chain to verify the correctness of the metadata used without the need of a trusted party. This functionality was included in [v1.2.5](https://github.com/polkadot-fellows/runtimes/releases/tag/v1.2.5) runtime release by the Fellowship. A user may up out of this functionality by setting the mode to `0`. When the mode is 00, the `metadataHash` field is empty/None.
The mode and metadataHash fields were introduced in transaction construction to support the optional
[`CheckMetadataHash` Signed Extension](https://github.com/polkadot-fellows/RFCs/blob/main/text/0078-merkleized-metadata.md).
This enables trustless metadata verification by allowing the chain to verify the correctness of the
metadata used without the need of a trusted party. This functionality was included in
[v1.2.5](https://github.com/polkadot-fellows/runtimes/releases/tag/v1.2.5) runtime release by the
Fellowship. A user may up out of this functionality by setting the mode to `0`. When the mode is 00,
the `metadataHash` field is empty/None.

**Serialized transactions and metadata**

Before being submitted, transactions are serialized. Serialized transactions are hex encoded
SCALE-encoded bytes. The {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} runtimes are
upgradable and therefore any interfaces are subject to change, the metadata allows developers to
structure any extrinsics or storage entries accordingly. The metadata provides you with all of the information required to know how to construct the
serialized call data specific to your transaction. You can read more about the metadata, its format
and how to get it in the
structure any extrinsics or storage entries accordingly. The metadata provides you with all of the
information required to know how to construct the serialized call data specific to your transaction.
You can read more about the metadata, its format and how to get it in the
[Substrate documentation](https://docs.substrate.io/reference/command-line-tools/subxt/#metadata).

**Summary**

The typical transaction workflow for {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} is as follows:
The typical transaction workflow for {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }}
is as follows:

1. Construct an unsigned transaction.
2. Create a signing payload.
Expand Down
4 changes: 2 additions & 2 deletions docs/learn/learn-guides-accounts-multisig.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ for more information.

## Multisig Transactions with Extrinsic Tab

See the video tutorial below to learn about multi-signature accounts and how you can transact with them using
the Polkadot-JS UI.
See the video tutorial below to learn about multi-signature accounts and how you can transact with
them using the Polkadot-JS UI.

<div className="row">
<div className="col text--center">
Expand Down

0 comments on commit 69955b5

Please sign in to comment.