-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
27 lines (18 loc) · 666 Bytes
/
test.js
File metadata and controls
27 lines (18 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const { ethers } = require("ethers");
let goerli = '0x9EE37a653De40Fb31f9148b1f2E7129A9A438889';
let mumbai = '0x2863A7cb0B6c4f8a4CD6246CcA7254fb8783d5c5';
let x = ethers.utils.solidityPack(
['address', 'address'],
[goerli,mumbai]
)
let y = ethers.utils.solidityPack(
['address', 'address'],
[mumbai,goerli]
)
console.log('setRemoteMumbai: ' + x);
console.log('setRemoteGoerli: ' + y);
// add value from estimateFee Function
let estimate = 747747698479;
let z = ethers.utils.solidityPack(["uint16", "uint256"], [1, estimate]);
console.log('adapterParams: ' + z);
console.log('estimateFee: ' + ethers.utils.formatEther(estimate) + ' ethers');