Skip to content

Commit

Permalink
change the name of preferred sign type
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetazzz committed Aug 30, 2024
1 parent c658585 commit efa6232
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libs/interchainjs/src/signing-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export class SigningClient {
}

getSinger(signerAddress: string) {
const signer = this.options.preferredSigningMethod ?
this.options.preferredSigningMethod === 'amino' ? this.aminoSigners[signerAddress] : this.directSigners[signerAddress]
const signer = this.options.preferredSignType ?
this.options.preferredSignType === 'amino' ? this.aminoSigners[signerAddress] : this.directSigners[signerAddress]
: this.aminoSigners[signerAddress] || this.directSigners[signerAddress];

if (!signer) {
Expand Down
2 changes: 1 addition & 1 deletion libs/interchainjs/src/types/signing-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface SignerOptions {
gasPrice?: Price | string;
prefix?: string;
broadcast?: BroadcastOptions;
preferredSigningMethod?: 'amino' | 'direct';
preferredSignType?: 'amino' | 'direct';
}

export interface SignerData {
Expand Down
4 changes: 2 additions & 2 deletions libs/interchainjs/starship/__tests__/staking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('Staking tokens testing', () => {
await getRpcEndpoint(),
wallet,
{
preferredSigningMethod: 'direct',
preferredSignType: 'direct',
broadcast: {
checkTx: true,
deliverTx: true,
Expand Down Expand Up @@ -183,7 +183,7 @@ describe('Staking tokens testing', () => {
await getRpcEndpoint(),
wallet,
{
preferredSigningMethod: 'amino',
preferredSignType: 'amino',
broadcast: {
checkTx: true,
deliverTx: true,
Expand Down

0 comments on commit efa6232

Please sign in to comment.