Skip to content

Commit ada9330

Browse files
feat: update initia type
1 parent f658627 commit ada9330

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/graz/src/actions/wallet/initia.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { clearSession } from ".";
1919
export interface InitiaWallet {
2020
getVersion: () => Promise<string>;
2121
getAddress: (chainId?: string) => Promise<string>;
22-
getOfflineSigner: (chainId: string) => OfflineDirectSigner;
22+
getOfflineSigner: (chainId: string) => OfflineDirectSigner & OfflineAminoSigner;
2323
getOfflineSignerOnlyAmino: (chainId: string) => OfflineAminoSigner;
2424
requestAddInitiaLayer: (chain: Partial<Chain>) => Promise<void>;
2525
signAndBroadcastSync: (chainId: string, txBody: Uint8Array, gas: number) => Promise<string>;
@@ -80,13 +80,12 @@ export const getInitia = (): Wallet => {
8080
pubKey: account.pubkey,
8181
bech32Address: account.address,
8282
address: rawAddress,
83-
ethereumHexAddress: "",
8483
isNanoLedger: false,
8584
isKeystone: false,
8685
};
8786
};
8887

89-
const getOfflineSigner = (chainId: string) => {
88+
const getOfflineSigner = (chainId: string): OfflineDirectSigner & OfflineAminoSigner => {
9089
const directSigner = initia.getOfflineSigner(chainId);
9190
const aminoSigner = initia.getOfflineSignerOnlyAmino(chainId);
9291

0 commit comments

Comments
 (0)