Skip to content

Commit 7c71c52

Browse files
authored
Merge pull request #146 from MeshJS/bug/drep-id
fix(multisig): enhance dRepScript generation logic
2 parents 796a108 + 537ac69 commit 7c71c52

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/multisigSDK.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,12 @@ export class MultisigWallet {
283283
}
284284

285285
getDRepScript(): string | undefined {
286-
const dRepScript = this.buildScript(3);
286+
let dRepScript = this.buildScript(3);
287+
288+
if(!dRepScript) {
289+
dRepScript = this.buildScript(0);
290+
}
291+
287292
if (!dRepScript) {
288293
console.warn("MultisigWallet keys:", this.keys);
289294
console.warn("buildScript(3) result:", dRepScript);

0 commit comments

Comments
 (0)