fix: automatically refresh transaction expiration#299
Conversation
40323a4 to
c8b9525
Compare
3d07287 to
ad2d7a2
Compare
b76b4a6 to
d009136
Compare
| } | ||
| } | ||
|
|
||
| async #ensureFreshRawData<RawDataType extends TransactionRawData>( |
There was a problem hiding this comment.
You might wonder why we have a private method with the same name as above. The reason is that we are sharing this method between the public 3 ones above. We need to have tronWeb as a param for it so we don't keep re-instantiating it. In a future PR this will not be a problem because Tronweb will have one instance per network readily available for the whole Snap instead of the existing factory pattern.
The factory pattern was useful when we were storing the instances but for some reason this stopped being the case it seems.
3286a53 to
44ac903
Compare
67d799e to
0b76de1
Compare
4d380e6 to
d4386a4
Compare
d4386a4 to
9a16d70
Compare
3b57287 to
9a16d70
Compare
## Summary - Moves transaction metadata refresh test coverage onto a stacked branch above #299 - Re-enables the tests that are skipped on the base PR branch - Restores the higher coverage thresholds supported by the added tests ## Verification - yarn lint:fix - yarn test
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
1 similar comment
|
@metamaskbot publish-preview |
Summary
expiration,ref_block_bytes, andref_block_hashbefore signing in both send/broadcast paths.