-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check channel agent Id #1347
Check channel agent Id #1347
Conversation
c236149
to
8b4ad44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
contracts/src/Assets.sol
Outdated
@@ -280,7 +280,11 @@ library Assets { | |||
} | |||
|
|||
// @dev Mint foreign token from Polkadot | |||
function mintForeignToken(bytes32 foreignTokenID, address recipient, uint256 amount) external { | |||
function mintForeignToken(address agent, bytes32 foreignTokenID, address recipient, uint256 amount) external { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed before, I prefer if we check the channel id instead of the agent id. Ultimately what we are doing is adding a restriction that the mint message can only be passed via the Channel owned by AssetHub.
Example:
function mintForeignToken(ChannelID channelID, ...) {
if (channelID == $.assetHubParaID.into()) { ... }
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in bbf6532
No description provided.