@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
|
@@ -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
|
-
|
|
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.
|
|
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) => {
|