@cryptorubic/web3 1.0.0-alpha.no-sdk.41 → 1.0.0-alpha.no-sdk.42
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
|
@@ -25,7 +25,7 @@ class TronAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
25
25
|
}
|
|
26
26
|
initWeb3Client() {
|
|
27
27
|
const rpc = typeof this.rpcList[0] === 'string' ? this.rpcList[0] : this.rpcList[0].fullHost;
|
|
28
|
-
this.public = new tronweb_1.TronWeb({ fullHost: rpc });
|
|
28
|
+
this.public = new tronweb_1.TronWeb({ fullHost: rpc, headers: { 'TRON-PRO-API-KEY': '' } });
|
|
29
29
|
}
|
|
30
30
|
async callContractMethod(contractAddress, contractAbi, methodName, methodArguments = []) {
|
|
31
31
|
this.public.setAddress(contractAddress);
|
|
@@ -125,7 +125,8 @@ class TronAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
125
125
|
this.logger
|
|
126
126
|
? this.logger.customError('[TronAdapter_multicallContractsMethods] Error: ', err)
|
|
127
127
|
: console.debug('[TronAdapter_multicallContractsMethods] Error:', err);
|
|
128
|
-
|
|
128
|
+
throw new Error('[TronAdapter_multicallContractsMethods]' + err.toString());
|
|
129
|
+
// return this.multicallContractsMethodsByOne(contractAbi, contractsData);
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
async getBlockNumber() {
|