Skip to content

Commit

Permalink
fix(eth-multisig-v4): add chain id of the coin in the network identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
gianchandania committed Dec 18, 2023
1 parent c6b91f2 commit 8efef00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/coins/ArbethWalletSimple.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ contract ArbethWalletSimple is WalletSimple {
* This provides protection signatures being replayed on other chains
*/
function getTokenNetworkId() internal override view returns (string memory) {
return string.concat(Strings.toString(block.chainid), 'ERC20');
return string.concat(Strings.toString(block.chainid), '-ERC20');
}

/**
* Get the network identifier that signers must sign over for batch transfers
* This provides protection signatures being replayed on other chains
*/
function getBatchNetworkId() internal override view returns (string memory) {
return string.concat(Strings.toString(block.chainid), 'Batch');
return string.concat(Strings.toString(block.chainid), '-Batch');
}
}
4 changes: 2 additions & 2 deletions contracts/coins/OpethWalletSimple.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ contract ArbethWalletSimple is WalletSimple {
* This provides protection signatures being replayed on other chains
*/
function getTokenNetworkId() internal override view returns (string memory) {
return string.concat(Strings.toString(block.chainid), 'ERC20');
return string.concat(Strings.toString(block.chainid), '-ERC20');
}

/**
* Get the network identifier that signers must sign over for batch transfers
* This provides protection signatures being replayed on other chains
*/
function getBatchNetworkId() internal override view returns (string memory) {
return string.concat(Strings.toString(block.chainid), 'Batch');
return string.concat(Strings.toString(block.chainid), '-Batch');
}
}

0 comments on commit 8efef00

Please sign in to comment.