Skip to content

Commit

Permalink
feat: update initia type
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuanatanielnm committed Dec 31, 2024
1 parent f658627 commit ada9330
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/graz/src/actions/wallet/initia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { clearSession } from ".";
export interface InitiaWallet {
getVersion: () => Promise<string>;
getAddress: (chainId?: string) => Promise<string>;
getOfflineSigner: (chainId: string) => OfflineDirectSigner;
getOfflineSigner: (chainId: string) => OfflineDirectSigner & OfflineAminoSigner;
getOfflineSignerOnlyAmino: (chainId: string) => OfflineAminoSigner;
requestAddInitiaLayer: (chain: Partial<Chain>) => Promise<void>;
signAndBroadcastSync: (chainId: string, txBody: Uint8Array, gas: number) => Promise<string>;
Expand Down Expand Up @@ -80,13 +80,12 @@ export const getInitia = (): Wallet => {
pubKey: account.pubkey,
bech32Address: account.address,
address: rawAddress,
ethereumHexAddress: "",
isNanoLedger: false,
isKeystone: false,
};
};

const getOfflineSigner = (chainId: string) => {
const getOfflineSigner = (chainId: string): OfflineDirectSigner & OfflineAminoSigner => {
const directSigner = initia.getOfflineSigner(chainId);
const aminoSigner = initia.getOfflineSignerOnlyAmino(chainId);

Expand Down

0 comments on commit ada9330

Please sign in to comment.