Skip to content

Commit

Permalink
Merge pull request #32 from ixofoundation/develop
Browse files Browse the repository at this point in the history
feat: add explicitSignerData to client signAndBroadcast
  • Loading branch information
Michael-Ixo authored Apr 17, 2023
2 parents 6cd5afd + 52cf6f9 commit 6d05b75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ixo/impactxclient-sdk",
"version": "1.1.0",
"version": "1.1.1",
"description": "One ixo client to rule them all, One ixo client to find, One ixo client to bring them all, and in impact bind them",
"author": "Ixo <ixo>",
"homepage": "https://github.com/ixofoundation/ixo-MultiClient-SDK#readme",
Expand Down
11 changes: 9 additions & 2 deletions src/stargate_client/customClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ export class SigningStargateClient extends StargateClient {
signerAddress: string,
messages: readonly EncodeObject[],
fee: StdFee | "auto" | number,
memo = ""
memo = "",
explicitSignerData?: SignerData
): Promise<DeliverTxResponse> {
let usedFee: StdFee;
if (fee == "auto" || typeof fee === "number") {
Expand All @@ -171,7 +172,13 @@ export class SigningStargateClient extends StargateClient {
} else {
usedFee = fee;
}
const txRaw = await this.sign(signerAddress, messages, usedFee, memo);
const txRaw = await this.sign(
signerAddress,
messages,
usedFee,
memo,
explicitSignerData
);
const txBytes = TxRaw.encode(txRaw).finish();
return this.broadcastTx(
txBytes,
Expand Down

0 comments on commit 6d05b75

Please sign in to comment.