Skip to content

Commit

Permalink
chore: add note
Browse files Browse the repository at this point in the history
Signed-off-by: Jawad Tariq <[email protected]>
  • Loading branch information
JDawg287 committed Nov 22, 2023
1 parent 24e3e3c commit 29419d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/examples/ERC20Messaging.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ contract ERC20Messaging is IERC20Messaging, ToposMessaging {
function deployToken(bytes calldata params) external {
(string memory name, string memory symbol, uint256 cap, uint256 dailyMintLimit, uint256 initialSupply) = abi
.decode(params, (string, string, uint256, uint256, uint256));

// Note: this does not stop deployment of the same symbol to other subnets. Do not use in a production system.
bytes32 salt = keccak256(abi.encodePacked(symbol));
// Deploy the token contract
// The tx will revert if the token already exists because the salt will be the same
Expand Down

0 comments on commit 29419d5

Please sign in to comment.