|
9 | 9 | "fmt" |
10 | 10 | "math/big" |
11 | 11 |
|
12 | | - "github.com/ava-labs/coreth/params" |
13 | 12 | "github.com/ava-labs/coreth/params/extras" |
14 | 13 | "github.com/holiman/uint256" |
15 | 14 |
|
@@ -143,7 +142,7 @@ func (utx *UnsignedExportTx) GasUsed(fixedFee bool) (uint64, error) { |
143 | 142 | return 0, err |
144 | 143 | } |
145 | 144 | if fixedFee { |
146 | | - cost, err = math.Add64(cost, params.AtomicTxBaseCost) |
| 145 | + cost, err = math.Add64(cost, AtomicTxBaseCost) |
147 | 146 | if err != nil { |
148 | 147 | return 0, err |
149 | 148 | } |
@@ -208,7 +207,7 @@ func (utx *UnsignedExportTx) SemanticVerify( |
208 | 207 | fc.Produce(ctx.AVAXAssetID, txFee) |
209 | 208 | // Apply fees to export transactions before Apricot Phase 3 |
210 | 209 | default: |
211 | | - fc.Produce(ctx.AVAXAssetID, params.AvalancheAtomicTxFee) |
| 210 | + fc.Produce(ctx.AVAXAssetID, AvalancheAtomicTxFee) |
212 | 211 | } |
213 | 212 | for _, out := range utx.ExportedOutputs { |
214 | 213 | fc.Produce(out.AssetID(), out.Output().Amount()) |
@@ -347,7 +346,7 @@ func NewExportTx( |
347 | 346 | avaxIns, avaxSigners, err = GetSpendableAVAXWithFee(ctx, state, keys, avaxNeeded, cost, baseFee) |
348 | 347 | default: |
349 | 348 | var newAvaxNeeded uint64 |
350 | | - newAvaxNeeded, err = math.Add64(avaxNeeded, params.AvalancheAtomicTxFee) |
| 349 | + newAvaxNeeded, err = math.Add64(avaxNeeded, AvalancheAtomicTxFee) |
351 | 350 | if err != nil { |
352 | 351 | return nil, errOverflowExport |
353 | 352 | } |
|
0 commit comments