@@ -11,9 +11,8 @@ async function main() {
1111 } ;
1212
1313 const feeData = await ethers . provider . getFeeData ( ) ;
14- const eip1559GasParams = {
15- maxFeePerGas : feeData . maxFeePerGas ,
16- maxPriorityFeePerGas : feeData . maxPriorityFeePerGas
14+ const gasParams = {
15+ gasPrice : feeData . gasPrice
1716 } ;
1817
1918 const [ deployer ] = await ethers . getSigners ( ) ;
@@ -69,7 +68,7 @@ async function main() {
6968 const WalletSimple = await ethers . getContractFactory (
7069 walletImplementationContractName
7170 ) ;
72- const walletSimple = await WalletSimple . deploy ( eip1559GasParams ) ;
71+ const walletSimple = await WalletSimple . deploy ( gasParams ) ;
7372 await walletSimple . deployed ( ) ;
7473 output . walletImplementation = walletSimple . address ;
7574 console . log ( 'WalletSimple deployed at ' + walletSimple . address ) ;
@@ -79,7 +78,7 @@ async function main() {
7978 ) ;
8079 const walletFactory = await WalletFactory . deploy (
8180 walletSimple . address ,
82- eip1559GasParams
81+ gasParams
8382 ) ;
8483 await walletFactory . deployed ( ) ;
8584 output . walletFactory = walletFactory . address ;
@@ -89,15 +88,18 @@ async function main() {
8988 // ForwarderV4 and ForwarderFactoryV4.
9089 // If we have to deploy contracts for the older coins like eth, avax, polygon, we need to deploy Forwarder and ForwarderFactory
9190 const Forwarder = await ethers . getContractFactory ( 'ForwarderV4' ) ;
92- const forwarder = await Forwarder . deploy ( ) ;
91+ const forwarder = await Forwarder . deploy ( gasParams ) ;
9392 await forwarder . deployed ( ) ;
9493 output . forwarderImplementation = forwarder . address ;
9594 console . log ( 'ForwarderV4 deployed at ' + forwarder . address ) ;
9695
9796 const ForwarderFactory = await ethers . getContractFactory (
9897 'ForwarderFactoryV4'
9998 ) ;
100- const forwarderFactory = await ForwarderFactory . deploy ( forwarder . address ) ;
99+ const forwarderFactory = await ForwarderFactory . deploy (
100+ forwarder . address ,
101+ gasParams
102+ ) ;
101103 await forwarderFactory . deployed ( ) ;
102104 output . forwarderFactory = forwarderFactory . address ;
103105 console . log ( 'ForwarderFactoryV4 deployed at ' + forwarderFactory . address ) ;
0 commit comments