Skip to content

Commit

Permalink
fix: typo in gasPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 28, 2021
1 parent 26e8820 commit 347e733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/commands/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function decodeCallData (data, options) {

// ## Function which `deploy ` contract
async function deploy (walletPath, contractPath, callData = "", options) {
const { json, gas, gasPrince, backend = COMPILER_BACKEND, ttl, nonce, fee } = options
const { json, gas, gasPrice, backend = COMPILER_BACKEND, ttl, nonce, fee } = options
// Deploy a contract to the chain and create a deploy descriptor
// with the contract informations that can be use to invoke the contract
// later on.
Expand All @@ -148,7 +148,7 @@ async function deploy (walletPath, contractPath, callData = "", options) {
async () => {
const ownerId = await client.address()
const { bytecode: code } = await client.contractCompile(contractFile, { backend })
const opt = R.merge(client.Ae.defaults, { gas, gasPrince, backend, ttl, nonce, fee })
const opt = R.merge(client.Ae.defaults, { gas, gasPrice, backend, ttl, nonce, fee })

// Prepare contract create transaction
const { tx, contractId } = await client.contractCreateTx(R.merge(opt, {
Expand Down

0 comments on commit 347e733

Please sign in to comment.