diff --git a/packages/dai/src/eth/TransactionManager.js b/packages/dai/src/eth/TransactionManager.js index 7366278b9..2070279af 100644 --- a/packages/dai/src/eth/TransactionManager.js +++ b/packages/dai/src/eth/TransactionManager.js @@ -184,11 +184,7 @@ export default class TransactionManager extends PublicService { if (!this.get('gas').disablePrice) { let txSpeed = options.transactionSpeed; - options.maxFeePerGas = await this.get('gas').getGasPrice(txSpeed); - options.maxPriorityFeePerGas = this.get('web3')._web3.utils.toWei( - (2.5).toString(), - 'gwei' - ); + options.gasPrice = await this.get('gas').getGasPrice(txSpeed); } return { diff --git a/packages/dai/test/eth/TransactionManager.spec.js b/packages/dai/test/eth/TransactionManager.spec.js index 62671890c..e24e8dc67 100644 --- a/packages/dai/test/eth/TransactionManager.spec.js +++ b/packages/dai/test/eth/TransactionManager.spec.js @@ -102,8 +102,7 @@ test('wrapped contract call adds nonce, web3 settings', async () => { { gasLimit: 1234567, nonce: expect.any(Number), - maxFeePerGas: gasPrice, - maxPriorityFeePerGas: '2500000000' + gasPrice: gasPrice } ); }, 30000); @@ -322,12 +321,7 @@ describe('transaction options', () => { 'open', [] ); - expect(Object.keys(options)).toEqual([ - 'gasLimit', - 'maxFeePerGas', - 'maxPriorityFeePerGas', - 'nonce' - ]); + expect(Object.keys(options)).toEqual(['gasLimit', 'gasPrice', 'nonce']); txManager.get('gas').disablePrice = true; options = await txManager._buildTransactionOptions( @@ -349,8 +343,7 @@ describe('transaction options', () => { expect(Object.keys(options)).toEqual([ 'value', 'gasLimit', - 'maxFeePerGas', - 'maxPriorityFeePerGas', + 'gasPrice', 'nonce' ]); }, 30000);