@harmony-js/contract
Advanced tools
Comparing version 0.1.14 to 0.1.16
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var account_1 = require("@harmony-js/account"); | ||
var transaction_1 = require("@harmony-js/transaction"); | ||
@@ -185,3 +184,3 @@ var network_1 = require("@harmony-js/network"); | ||
signed = void 0; | ||
if (!(this.wallet instanceof account_1.Wallet)) return [3 /*break*/, 2]; | ||
if (!this.wallet.signer) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.wallet.signTransaction(this.transaction, this.wallet.signer, undefined, updateNonce, 'rlp', 'latest')]; | ||
@@ -188,0 +187,0 @@ case 1: |
{ | ||
"name": "@harmony-js/contract", | ||
"version": "0.1.14", | ||
"version": "0.1.16", | ||
"description": "contract libraries for harmony", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "17e721ace88d57e95a5145015342c9fd781559df" | ||
"gitHead": "169bb4a9184433fe7b09c1d17f6295b5ca629a7c" | ||
} |
@@ -192,18 +192,17 @@ import { Wallet } from '@harmony-js/account'; | ||
let signed; | ||
signed = | ||
this.wallet instanceof Wallet | ||
? await this.wallet.signTransaction( | ||
this.transaction, | ||
this.wallet.signer, | ||
undefined, | ||
updateNonce, | ||
'rlp', | ||
'latest', // 'pending', | ||
) | ||
: await this.wallet.signTransaction( | ||
this.transaction, | ||
updateNonce, | ||
'rlp', | ||
'latest', // 'pending', | ||
); | ||
signed = this.wallet.signer | ||
? await this.wallet.signTransaction( | ||
this.transaction, | ||
this.wallet.signer, | ||
undefined, | ||
updateNonce, | ||
'rlp', | ||
'latest', // 'pending', | ||
) | ||
: await this.wallet.signTransaction( | ||
this.transaction, | ||
updateNonce, | ||
'rlp', | ||
'latest', // 'pending', | ||
); | ||
this.contract.address = TransactionFactory.getContractAddress(signed); | ||
@@ -210,0 +209,0 @@ this.contract.setStatus(ContractStatus.SIGNED); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16689469
12728