Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

fix: support EIP-1559 #180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"truffle-contract": "^3.0.1",
"typescript": "^4.3.5",
"varuint-bitcoin": "^1.1.2",
"web3": "^1.3.0",
"web3": "^1.5.2",
"web3-utils": "^1.3.0"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/lockdrop/EthereumLockdrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,16 @@ export async function submitLockTx(txInput: LockInput, address: string, contract
const amountToSend = Web3.utils.toWei(txInput.amount, 'ether');
let hash = '';

// Memo: 2gwei
const maxPriorityFeePerGas = 2000000000;

// communicate with the smart contract
await contract.methods
.lock(txInput.duration, introducer)
.send({
from: address,
value: amountToSend,
maxPriorityFeePerGas,
})
.on('transactionHash', (res: any) => {
hash = res;
Expand Down
Loading