Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
7ee48324
Commit
7ee48324
authored
7 months ago
by
ron
Browse files
Options
Downloads
Patches
Plain Diff
Fix doc
parent
26263ace
Branches
Branches containing commit
No related merge requests found
Pipeline
#494694
waiting for manual action with stages
in 16 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bridges/snowbridge/pallets/system/src/lib.rs
+7
-1
7 additions, 1 deletion
bridges/snowbridge/pallets/system/src/lib.rs
with
7 additions
and
1 deletion
bridges/snowbridge/pallets/system/src/lib.rs
+
7
−
1
View file @
7ee48324
...
...
@@ -41,7 +41,8 @@
//! Tokens deposited on AssetHub pallet can be bridged to Ethereum as wrapped ERC20 tokens. As a
//! prerequisite, the token should be registered first.
//!
//! * [`Call:register_token`]: Register a token location as a wrapped ERC20 contract on Ethereum.
//! * [`Call::register_token`]: Register a token location as a wrapped ERC20 contract on Ethereum.
#![cfg_attr(not(feature
=
"std"
),
no_std)]
#[cfg(test)]
mod
mock
;
...
...
@@ -603,8 +604,13 @@ pub mod pallet {
}
/// Registers a Polkadot-native token as a wrapped ERC20 token on Ethereum.
/// Privileged. Can only be called by root.
///
/// Fee required: No
///
/// - `origin`: Must be root
/// - `location`: Location of the asset
/// - `metadata`: Metadata(name,symbol,decimals) of the asset
#[pallet::call_index(
10
)]
#[pallet::weight(T::WeightInfo::register_token())]
pub
fn
register_token
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment