Skip to content

Commit

Permalink
chore: change executeData type from 0x${string} to string (#317)
Browse files Browse the repository at this point in the history
* chore: change executeData type from `0x${string}` to `string`

* chore: fix build error

* chore: fix testnet rpc
  • Loading branch information
npty authored Apr 11, 2024
1 parent 2e45927 commit 35f364c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const devnetConfigs: EnvironmentConfigs = {
};
const testnetConfigs: EnvironmentConfigs = {
resourceUrl: "https://nest-server-testnet.axelar.dev",
axelarRpcUrl: "https://rpc-axelar-testnet.imperator.co:443", // "https://testnet.rpc.axelar.dev/chain/axelar",
axelarRpcUrl: "https://testnet.rpc.axelar.dev/chain/axelar",
axelarLcdUrl: "https://lcd-axelar-testnet.imperator.co",
depositServiceUrl: "https://deposit-service.testnet.axelar.dev",
axelarGMPApiUrl: "https://testnet.api.gmp.axelarscan.io",
Expand Down
4 changes: 2 additions & 2 deletions src/libs/AxelarQueryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class AxelarQueryAPI {
public async calculateL1FeeForDestL2(
destChainId: EvmChain | string,
destToken: FeeToken,
executeData: `0x${string}` | undefined,
executeData: string | undefined,
sourceToken: FeeToken,
ethereumToken: BaseFeeResponse["ethereumToken"],
actualGasMultiplier: number,
Expand Down Expand Up @@ -343,7 +343,7 @@ export class AxelarQueryAPI {
gasMultiplier: number | "auto" = "auto",
sourceChainTokenSymbol?: GasToken | string,
minGasPrice = "0",
executeData?: `0x${string}`,
executeData?: string,
gmpParams?: GMPParams
): Promise<string | AxelarQueryAPIFeeResponse> {
await throwIfInvalidChainIds([sourceChainId, destinationChainId], this.environment);
Expand Down
2 changes: 1 addition & 1 deletion src/libs/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export type TokenUnit = {
};

export type EstimateL1FeeParams = {
executeData: `0x${string}`;
executeData: string;
l1GasPrice: TokenUnit;
destChain: string;
l1GasOracleAddress?: string | undefined;
Expand Down

0 comments on commit 35f364c

Please sign in to comment.