iotaledger / iotaledger/firefly

[Task]: Add mock request for gas estimation

Open
#8,016 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
478
Forks
100
PR merge metrics
No merged PRs in 30d

Description

### Task description

Currently, when withdrawing "stuck" funds from EVM ("layer 1.5"), Ledger users have to confirm the transaction twice;

1. to get the gas estimate for the off-ledger request
2. to confirm the actual transaction with the correct gas estimation

To improve the UX, and remove the first confirmation on ledger device, create the mock off-ledger request and fetch gas estimation and than use it in the off-ledger request in the actual transaction.
To accomplish this create `getMockLayer2WithdrawRequest` function that does similar task as the real `getLayer2WithdrawRequest` function but instead of signing the essence bytes just hardcode all 0 for the public key and the signature.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.