Open kvhnuke opened 18 hours ago
The changes made in the Transaction
class of the Ethereum transaction handling library enhance the management of Ethereum transactions, particularly in fee calculations. The getOPfees
method has been updated to directly accept a finalized transaction object, improving fee estimation. The finalizeTransaction
method now returns an additional property, finalizedTransaction
, which simplifies the handling of different transaction types. Additionally, the getGasCosts
method has been adjusted to utilize this finalized transaction for accurate fee calculations. Overall, the modifications improve clarity and efficiency in transaction processing.
File Path | Change Summary |
---|---|
packages/extension/src/providers/ethereum/libs/transaction/index.ts |
- Updated getOPfees method to accept LegacyTransaction | FeeMarketEIP1559Transaction as a parameter.- Modified finalizeTransaction to return finalizedTransaction along with the transaction.- Simplified logic for determining transaction type. - Adjusted getGasCosts to use finalizedTransaction for fee calculations.- Added common configurations for transaction types. |
packages/extension/src/ui/action/views/swap/components/swap-error/index.vue |
- Altered height of .swap-looking__container from 600px to 100% for flexible layout.- Retained conditional rendering for error messages and animations. |
packages/extension/src/ui/action/views/swap/components/swap-loading/index.vue |
- Changed height of .swap-looking__container from 600px to 100% for responsive design.- Maintained structure and functionality of the component. |
packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue |
- Removed inline style for width from <hardware-wallet-msg> component, simplifying markup while retaining conditional rendering based on account . |
sequenceDiagram
participant User
participant Transaction
participant FeeCalculator
User->>Transaction: Request to finalize transaction
Transaction->>Transaction: Process transaction
Transaction->>Transaction: Determine transaction type
Transaction->>Transaction: Return finalizedTransaction
User->>FeeCalculator: Request operational fees
FeeCalculator->>Transaction: Get OP fees with finalizedTransaction
Transaction->>FeeCalculator: Return calculated fees
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
:briefcase: Build Files chrome: enkrypt-chrome-aa5c165b.zip firefox: enkrypt-firefox-aa5c165b.zip
:syringe: Virus total analysis chrome: aa5c165b firefox: aa5c165b
Summary by CodeRabbit
New Features
Bug Fixes
Style