Skip to content

Commit

Permalink
Fix SafeMultisigsResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
hundredark committed May 14, 2024
1 parent 55b1b96 commit ba30c0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/client/types/multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,23 @@ export interface SafeTransaction extends MultisigTransaction {
signatureMap?: Record<number, string>[];
}

export interface SafeMultisigsReceiver {
members: string[];
members_hash: string;
threshold: number;
destination: string;
tag: string;
withdrawal_hash: string;
}

export interface SafeMultisigsResponse {
type: 'transaction_request';
request_id: string;
transaction_hash: string;
asset_id: string; // asset uuid
kernel_asset_id: string; // SHA256Hash of asset uuid
amount: string;
receivers: string[];
receivers: SafeMultisigsReceiver[];
senders: string[];
senders_hash: string;
senders_threshold: number;
Expand Down
2 changes: 1 addition & 1 deletion src/client/utils/safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const buildSafeTransaction = (utxos: SafeUtxoOutput[], rs: SafeTransactio
inputs,
outputs,
references,
signatureMap: []
signatureMap: [],
};
};

Expand Down

0 comments on commit ba30c0a

Please sign in to comment.