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 812f80c commit 978f1c7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions test/gas.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe(`Wallet Operations Gas Usage`, function () {
});

const operationHash = helpers.getSha3ForConfirmationTx(
'ETHER',
'17000',
destinationAccount,
amount,
data,
Expand Down Expand Up @@ -148,7 +148,7 @@ describe(`Wallet Operations Gas Usage`, function () {

// Get the operation hash to be signed
const operationHash = helpers.getSha3ForBatchTx(
'ETHER-Batch',
'17000-Batch',
recipients.map((recipient) => recipient.address.toLowerCase()),
recipients.map((recipient) => recipient.amount),
expireTime,
Expand Down
2 changes: 1 addition & 1 deletion test/walletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('WalletFactory', function () {
// Get the operation hash to be signed
const expireTime = Math.floor(new Date().getTime() / 1000) + 60;
const operationHash = helpers.getSha3ForConfirmationTx(
'ETHER',
'17000',
accounts[3].toLowerCase(),
amount,
'0x',
Expand Down
24 changes: 12 additions & 12 deletions test/walletSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ const SAFE_MODE_ACTIVATE_EVENT = 'SafeModeActivated';
const coins = [
{
name: 'Eth',
nativePrefix: 'ETHER',
nativeBatchPrefix: 'ETHER-Batch',
tokenPrefix: 'ERC20',
nativePrefix: '17000',
nativeBatchPrefix: '17000-Batch',
tokenPrefix: '17000-ERC20',
WalletSimple: EthWalletSimple
},
{
Expand All @@ -77,23 +77,23 @@ const coins = [
},
{
name: 'Polygon',
nativePrefix: 'POLYGON',
nativeBatchPrefix: 'POLYGON-Batch',
tokenPrefix: 'POLYGON-ERC20',
nativePrefix: '80001',
nativeBatchPrefix: '80001-Batch',
tokenPrefix: '80001-ERC20',
WalletSimple: PolygonWalletSimple
},
{
name: 'Arbeth',
nativePrefix: 'ARBETH',
nativeBatchPrefix: 'ARBETH-Batch',
tokenPrefix: 'ARBETH-ERC20',
nativePrefix: '11155111',
nativeBatchPrefix: '11155111-Batch',
tokenPrefix: '11155111-ERC20',
WalletSimple: ArbethWalletSimple
},
{
name: 'Opeth',
nativePrefix: 'OPETH',
nativeBatchPrefix: 'OPETH-Batch',
tokenPrefix: 'OPETH-ERC20',
nativePrefix: '11155420',
nativeBatchPrefix: '11155420-Batch',
tokenPrefix: '11155420-ERC20',
WalletSimple: OpethWalletSimple
}
];
Expand Down

0 comments on commit 978f1c7

Please sign in to comment.