fix(contract):signTransaction using 'latest' blockNumber

dev
neeboo 5 years ago
parent c63beab6d8
commit c0e6014c71
  1. 3
      packages/harmony-contract/src/contract.ts
  2. 2
      packages/harmony-contract/src/methods/method.ts

@ -100,4 +100,7 @@ export class Contract {
runEventFactory(): Contract { runEventFactory(): Contract {
return new EventFactory(this).addEventsToContract(); return new EventFactory(this).addEventsToContract();
} }
connect(wallet: Wallet): void {
this.wallet = wallet;
}
} }

@ -149,7 +149,7 @@ export class ContractMethod {
undefined, undefined,
updateNonce, updateNonce,
'rlp', 'rlp',
'pending', 'latest', // 'pending',
); );
this.contract.address = TransactionFactory.getContractAddress(signed); this.contract.address = TransactionFactory.getContractAddress(signed);
this.contract.setStatus(ContractStatus.SIGNED); this.contract.setStatus(ContractStatus.SIGNED);

Loading…
Cancel
Save