Skip to content
Snippets Groups Projects

[fix for 132] Two GetAssetOutboundFee patches #check-lint-warning

Merged Eridanus (9R) requested to merge eridanus/gas-mgr-fix into develop
1 unresolved thread
3 files
+ 6
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -117,7 +117,9 @@ func (gm *GasMgrVCUR) GetAssetOutboundFee(ctx cosmos.Context, asset common.Asset
return cosmos.ZeroUint(), err
}
if err := chainOutboundFee.Valid(); err != nil {
return cosmos.ZeroUint(), err
// If the network fee is invalid, usually because consensus hasn't been reached, a
// fee can't be deducted. So return 0 and no error
return cosmos.ZeroUint(), nil
}
gasPool, err := gm.keeper.GetPool(ctx, asset.GetChain().GetGasAsset())
Loading