Skip to content

Commit

Permalink
refactor: cleanup MIN_GAS_PRICE
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 20, 2021
1 parent 0e28af2 commit a5b2884
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ae/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export const ContractAPI = Ae.compose(ContractBase, ContractACI, {
Ae: {
defaults: {
deposit: DEPOSIT,
gasPrice: MIN_GAS_PRICE, // min gasPrice 1e9
gasPrice: MIN_GAS_PRICE,
amount: AMOUNT,
gas: GAS
}
Expand Down
2 changes: 1 addition & 1 deletion src/contract/aci/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function getContractInstance (source, { aci, contractAddress, filesystem =
skipTransformDecoded: false,
callStatic: false,
deposit: DEPOSIT,
gasPrice: MIN_GAS_PRICE, // min gasPrice 1e9
gasPrice: MIN_GAS_PRICE,
amount: AMOUNT,
gas: GAS,
waitMined: true,
Expand Down
2 changes: 1 addition & 1 deletion src/tx/builder/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const RESPONSE_TTL = { type: 'delta', value: 10 }
export const DEPOSIT = 0
export const AMOUNT = 0
export const GAS = 1600000 - 21000
export const MIN_GAS_PRICE = 1000000000 // min gasPrice 1e9
export const MIN_GAS_PRICE = 1e9
export const MAX_AUTH_FUN_GAS = 50000
export const DRY_RUN_ACCOUNT = { pub: 'ak_11111111111111111111111111111111273Yts', amount: '100000000000000000000000000000000000' }
// # AENS
Expand Down

0 comments on commit a5b2884

Please sign in to comment.