mirror of
https://github.com/tornadocash/tornado-cli.git
synced 2024-11-22 01:37:08 +01:00
Support EIP-1559 transaction for Polygon & Avalanche
Most of the transaction on those chains have same maxFeePerGas and maxPriorityFeePerGas value
This commit is contained in:
parent
93fafe0178
commit
e865eb9af8
10
cli.js
10
cli.js
@ -85,6 +85,16 @@ async function generateTransaction(to, encodedData, value = 0) {
|
|||||||
gas : gasLimit,
|
gas : gasLimit,
|
||||||
data : encodedData
|
data : encodedData
|
||||||
}
|
}
|
||||||
|
} else if (netId == 137 || netId == 43114) {
|
||||||
|
tx = {
|
||||||
|
to : to,
|
||||||
|
value : value,
|
||||||
|
nonce : nonce,
|
||||||
|
maxFeePerGas : gasPrice,
|
||||||
|
maxPriorityFeePerGas : gasPrice,
|
||||||
|
gas : gasLimit,
|
||||||
|
data : encodedData
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
tx = {
|
tx = {
|
||||||
to : to,
|
to : to,
|
||||||
|
Loading…
Reference in New Issue
Block a user