Skip to content

Commit

Permalink
fix string to bytes parsing bug on ts-client
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Leonard authored and Robert Leonard committed Jun 24, 2024
1 parent 830f595 commit 66826fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway-eth-ts/src/service/GatewayNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
IGatewayGatekeeper,
IGatewayNetwork
} from "../contracts/typechain-types";
import { BigNumberish, ContractTransaction, Wallet, ethers } from "ethers";
import { BigNumberish, ContractTransaction, Wallet, ethers, utils } from "ethers";
import { DEFAULT_GAS_LIMIT } from "../utils/constants";
import { defaultAbiCoder } from "@ethersproject/abi";

Expand Down Expand Up @@ -141,7 +141,7 @@ export class GatewayNetworkClass {

async getNetworkId(networkName: string): Promise<BigNumberish> {
return await this.gatewayNetworkContract.getNetworkId(
networkName,
utils.formatBytes32String(networkName),
{ gasLimit: DEFAULT_GAS_LIMIT }
);
}
Expand Down

0 comments on commit 66826fd

Please sign in to comment.