-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/remove ethereumjs #1921
Feat/remove ethereumjs #1921
Conversation
@@ -156,7 +142,7 @@ export class TransactionFormatter { | |||
clonedTxParams.gasPrice = defaultGasPrice as never; | |||
} | |||
|
|||
clonedTxParams.type = this.isEIP1559Compatible ? TRANSACTION_ENVELOPE_TYPES.FEE_MARKET : TRANSACTION_ENVELOPE_TYPES.LEGACY; | |||
clonedTxParams.type = Number(this.isEIP1559Compatible ? TRANSACTION_ENVELOPE_TYPES.FEE_MARKET : TRANSACTION_ENVELOPE_TYPES.LEGACY); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just make this Number.parseInt(x,16) to remove ambiguity
const unsignedEthTx = TransactionFactory.fromTxData(finalTxParams, { | ||
common, | ||
}); | ||
const ethTx = Transaction.from(finalTxParams); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to remove from
from finalTxParams
...viders/ethereum-provider/src/providers/privateKeyProviders/TransactionFormatter/formatter.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Motivation and Context
Remove ethereumjs/tx and /common
Jira Link:
Description
Replace ethereumjs/tx and /common with ethers to reduce package size
How has this been tested?
tested with demo app
Screenshots (if appropriate):
Types of changes
Checklist: