@cryptorubic/web3 1.1.0 → 1.1.1-alpha.allowance.1

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.1.0",
3
+ "version": "1.1.1-alpha.allowance.1",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -87,12 +87,7 @@ class EvmAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigner {
87
87
  ...(0, options_1.getViemGasOptions)(params.txOptions),
88
88
  gas: calculatedGas
89
89
  };
90
- try {
91
- await this.publicClient.estimateGas(gasfulViemParams);
92
- }
93
- catch {
94
- throw new rubic_sdk_error_1.RubicSdkError('Low native value');
95
- }
90
+ await this.publicClient.estimateGas(gasfulViemParams);
96
91
  const sendParams = {
97
92
  ...gasfulParams,
98
93
  ...(params.txOptions.onTransactionHash && {
@@ -93,7 +93,7 @@ class BlockchainAdapterFactoryService {
93
93
  /**
94
94
  * evm chains has many EvmAdapter instances
95
95
  * if you change network before swap - you need to be sure that
96
- * EvmAdapter.signer.wallet and EvmAdapter.signer.wallet already set
96
+ * EvmAdapter.signer.wallet and EvmAdapter.signer.walletAddress already set
97
97
  */
98
98
  const chainTypeAdapters = Object.values(this.adapterStore).filter((adapter) => core_1.BlockchainsInfo.getChainType(adapter.blockchain) === core_1.BlockchainsInfo.getChainType(blockchain));
99
99
  chainTypeAdapters.forEach((adapter) => {