chore: run pretty
This commit is contained in:
parent
b3319452e5
commit
c6f828b06a
|
@ -31,9 +31,7 @@ function showBalance() {
|
||||||
`Account2: ${account2.publicKey} has a balance of ${toBalance}`,
|
`Account2: ${account2.publicKey} has a balance of ${toBalance}`,
|
||||||
);
|
);
|
||||||
console.log(
|
console.log(
|
||||||
`Contract State: ${
|
`Contract State: ${contractState.publicKey} has a balance of ${contractStateBalance}`,
|
||||||
contractState.publicKey
|
|
||||||
} has a balance of ${contractStateBalance}`,
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,9 +32,7 @@ function showBalance() {
|
||||||
`Account2: ${account2.publicKey} has a balance of ${toBalance}`,
|
`Account2: ${account2.publicKey} has a balance of ${toBalance}`,
|
||||||
);
|
);
|
||||||
console.log(
|
console.log(
|
||||||
`Contract State: ${
|
`Contract State: ${contractState.publicKey} has a balance of ${contractStateBalance}`,
|
||||||
contractState.publicKey
|
|
||||||
} has a balance of ${contractStateBalance}`,
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -277,9 +277,7 @@ export class BudgetProgram {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`A maximum of two conditions are support: ${
|
`A maximum of two conditions are support: ${conditions.length} provided`,
|
||||||
conditions.length
|
|
||||||
} provided`,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,9 +203,7 @@ export class Transaction {
|
||||||
|
|
||||||
if (numRequiredSignatures > this.signatures.length) {
|
if (numRequiredSignatures > this.signatures.length) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Insufficent signatures: expected ${numRequiredSignatures} but got ${
|
`Insufficent signatures: expected ${numRequiredSignatures} but got ${this.signatures.length}`,
|
||||||
this.signatures.length
|
|
||||||
}`,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue