Skip to content

Commit

Permalink
Fix Injective ledger voting
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jan 18, 2025
1 parent 407a39b commit 9fddf5e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/adapters/InjectiveSigningAdapter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ export default class InjectiveSigningAdapter extends DefaultSigningAdapter {
return txRawEip712
}

toProto(message){
if(!this.signerProvider.isLedger()){
return super.toProto(message)
}

const injMessage = message.toInjective()
return {
typeUrl: injMessage.toDirectSign().type,
value: injMessage.toBinary()
}
}

pubkeyTypeUrl(pub_key){
if(pub_key && pub_key['@type']) return pub_key['@type']

Expand Down

0 comments on commit 9fddf5e

Please sign in to comment.