@cryptorubic/web3 1.4.5 → 1.4.6-alpha-rub-1712.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "1.4.5",
3
+ "version": "1.4.6-alpha-rub-1712.2",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -66,10 +66,11 @@ class TronAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigner
66
66
  }
67
67
  const contract = await this.wallet.contract().at(params.tokenAddress);
68
68
  const transaction = await contract['transfer'](params.receiver, parseInt(params.tokenWeiAmount)).send();
69
+ const txId = typeof transaction === 'string' ? transaction : transaction.txid;
69
70
  if (params.txOptions.onTransactionHash) {
70
- params.txOptions.onTransactionHash(transaction.txID);
71
+ params.txOptions.onTransactionHash(txId);
71
72
  }
72
- return transaction.txID;
73
+ return txId;
73
74
  }
74
75
  catch (err) {
75
76
  console.error('Method execution error: ', err);