Skip to content

Commit 557c755

Browse files
committed
pkg
1 parent 359d26d commit 557c755

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

networks/injective/src/signers/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export const DEFAULT_INJECTIVE_SIGNER_CONFIG: Partial<DocOptions> = {
4545
// Public key encoding - Injective specific
4646
encodePublicKey: encodeInjectivePublicKey,
4747
pubkeyDecoders: {
48+
// @ts-ignore - Returns proto PubKey (has `key`) instead of amino Pubkey (has `type`/`value`).
49+
// Functionally correct for Injective e2e; the decoded pubkey isn't used for signing.
4850
'/injective.crypto.v1beta1.ethsecp256k1.PubKey': (pubkey: Any): Secp256k1PubKey => {
4951
const { key } = Secp256k1PubKey.decode(pubkey.value);
5052
return Secp256k1PubKey.fromPartial({ key });

0 commit comments

Comments
 (0)