Skip to content

Commit ccbf860

Browse files
authored
fix: igra timeout issue and qr code ui (#264)
1 parent 8fb9286 commit ccbf860

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/ethereum/transaction.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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

lib/layer2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const kasplexMainnet = {
5151

5252
export 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

7575
export const igraMainnet = {
7676
id: 38_837,
77-
name: "IGRA Galleon Mainnet",
77+
name: "IGRA",
7878
nativeCurrency: {
7979
decimals: 18,
8080
name: "iKAS",

0 commit comments

Comments
 (0)