File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,14 @@ export async function sendEvmTransaction({
2323 chainId,
2424 data,
2525} : SendEvmTransactionParams ) : Promise < Hex > {
26- const [ estimatedGas , nonce , gasPrice ] = await Promise . all ( [
27- ethClient . estimateFeesPerGas ( ) ,
28- ethClient . getTransactionCount ( {
29- address : sender ,
30- } ) ,
31- ethClient . getGasPrice ( ) ,
32- ] ) ;
26+ const estimatedGas = await ethClient . estimateFeesPerGas ( ) ;
27+ const nonce = await ethClient . getTransactionCount ( {
28+ address : sender ,
29+ } ) ;
30+
31+ // Get the minimum gas price from the network
32+ const gasPrice = await ethClient . getGasPrice ( ) ;
33+
3334 // Use the higher of estimated or minimum required gas price
3435 const maxFeePerGas = estimatedGas . maxFeePerGas
3536 ? estimatedGas . maxFeePerGas > gasPrice
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const kasplexMainnet = {
5151
5252export const igraTestnet = {
5353 id : 38_836 ,
54- name : "IGRA Galleon Testnet" ,
54+ name : "IGRA Testnet" ,
5555 nativeCurrency : {
5656 decimals : 18 ,
5757 name : "iKAS" ,
@@ -74,7 +74,7 @@ export const igraTestnet = {
7474
7575export const igraMainnet = {
7676 id : 38_837 ,
77- name : "IGRA Galleon Mainnet " ,
77+ name : "IGRA" ,
7878 nativeCurrency : {
7979 decimals : 18 ,
8080 name : "iKAS" ,
You can’t perform that action at this time.
0 commit comments