Skip to content

Commit

Permalink
fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
setzeus committed Jul 3, 2024
1 parent 571bd5d commit cbf3ff2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/contracts/sbtc-withdrawal.clar
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
(unwrap! (accept-withdrawal-request (get request-id withdrawal) (unwrap-panic current-bitcoin-txid) current-signer-bitmap (unwrap-panic current-output-index) (unwrap-panic current-fee)) (err (+ ERR_WITHDRAWAL_INDEX_PREFIX (+ u10 index))))
)
;; rejected
(unwrap! (reject-withdrawal (get request-id withdrawal) current-signer-bitmap) (err (+ ERR_WITHDRAWAL_INDEX_PREFIX (+ u10 index))))
(unwrap! (reject-withdrawal-request (get request-id withdrawal) current-signer-bitmap) (err (+ ERR_WITHDRAWAL_INDEX_PREFIX (+ u10 index))))
)
(ok (+ index u1))
)
Expand Down
4 changes: 2 additions & 2 deletions contracts/tests/clarigen-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1618,8 +1618,8 @@ export const contracts = {
],
Response<bigint, bigint>
>,
rejectWithdrawal: {
name: "reject-withdrawal",
rejectWithdrawalRequest: {
name: "reject-withdrawal-request",
access: "public",
args: [
{ name: "request-id", type: "uint128" },
Expand Down
6 changes: 3 additions & 3 deletions contracts/tests/sbtc-withdrawal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ describe("Reject a withdrawal request", () => {
alice
);
const receipt = txErr(
withdrawal.rejectWithdrawal({
withdrawal.rejectWithdrawalRequest({
requestId: 2n,
bitcoinTxid: new Uint8Array(32).fill(0),
signerBitmap: 0n,
Expand Down Expand Up @@ -483,7 +483,7 @@ describe("Reject a withdrawal request", () => {
alice
);
const receipt = txErr(
withdrawal.rejectWithdrawal({
withdrawal.rejectWithdrawalRequest({
requestId: 1n,
bitcoinTxid: new Uint8Array(32).fill(0),
signerBitmap: 0n,
Expand Down Expand Up @@ -524,7 +524,7 @@ describe("Reject a withdrawal request", () => {
deployer
);
const receipt = txErr(
withdrawal.rejectWithdrawal({
withdrawal.rejectWithdrawalRequest({
requestId: 1n,
bitcoinTxid: new Uint8Array(32).fill(0),
signerBitmap: 0n,
Expand Down

0 comments on commit cbf3ff2

Please sign in to comment.