Skip to content

[wallet/desktop] fix: offline transaction - fill information about av…#1981

Merged
cryptoBeliever merged 4 commits intodevfrom
fix/1980-offline-transactions-deadline
May 22, 2023
Merged

[wallet/desktop] fix: offline transaction - fill information about av…#1981
cryptoBeliever merged 4 commits intodevfrom
fix/1980-offline-transactions-deadline

Conversation

@cryptoBeliever
Copy link
Contributor

What's the issue?

The problem described in #1980
Method NetworkConfigurationHelpers.epochAdjustment (and others helper in this file) expected available plugins config to be present in network configuration. For offline transaction this has been not filled. Because of that wallet used epoch adjustment for the default network (testnet).

What's the fix?

Fill in information about plugins for offline configuration

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2023

Codecov Report

Merging #1981 (7290cbf) into dev (51fe6ae) will increase coverage by 0.11%.
The diff coverage is 92.30%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1981      +/-   ##
==========================================
+ Coverage   53.64%   53.76%   +0.11%     
==========================================
  Files         584      585       +1     
  Lines       14006    14029      +23     
  Branches     2348     2351       +3     
==========================================
+ Hits         7513     7542      +29     
+ Misses       6443     6437       -6     
  Partials       50       50              
Flag Coverage Δ
wallet-desktop 53.76% <92.30%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...re/transactions/ViewMosaicDefinitionTransaction.ts 100.00% <ø> (+81.81%) ⬆️
...c/services/AssetTableService/MosaicTableService.ts 100.00% <ø> (ø)
src/views/resources/Images.ts 100.00% <ø> (ø)
src/core/transactions/TransactionViewFactory.ts 58.44% <33.33%> (-1.02%) ⬇️
src/core/database/entities/MosaicModel.ts 100.00% <100.00%> (ø)
...nsactions/ViewMosaicSupplyRevocationTransaction.ts 100.00% <100.00%> (ø)
src/services/offline/MockModels.ts 87.09% <100.00%> (+7.09%) ⬆️

... and 1 file with indirect coverage changes

@cryptoBeliever cryptoBeliever marked this pull request as ready for review April 25, 2023 08:04
@AnthonyLaw
Copy link
Member

can you add a unit test to ensure the offline transaction deadline is generated correctly.

…ailable plugins for mainnet and testnet - test
@cryptoBeliever cryptoBeliever merged commit 00213e5 into dev May 22, 2023
@cryptoBeliever cryptoBeliever deleted the fix/1980-offline-transactions-deadline branch May 22, 2023 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants