Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Feb 25, 2025
1 parent 019ba1d commit 2a6b583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ unconstrained fn public_transfer_on_behalf_of_other() {
utils::check_public_balance(token_contract_address, recipient, transfer_amount);
}

#[test(should_fail_with = "attempt to subtract with underflow")]
#[test(should_fail_with = "Assertion failed: attempt to subtract with overflow 'self - other'")]
unconstrained fn public_transfer_failure_more_than_balance() {
// Setup without account contracts. We are not using authwits here, so dummy accounts are enough
let (env, token_contract_address, owner, recipient, mint_amount) =
Expand Down Expand Up @@ -106,7 +106,7 @@ unconstrained fn public_transfer_failure_on_behalf_of_other_without_approval() {
public_transfer_in_private_call_interface.call(&mut env.public());
}

#[test(should_fail_with = "attempt to subtract with underflow")]
#[test(should_fail_with = "Assertion failed: attempt to subtract with overflow 'self - other'")]
unconstrained fn public_transfer_failure_on_behalf_of_other_more_than_balance() {
// Setup with account contracts. Slower since we actually deploy them, but needed for authwits.
let (env, token_contract_address, owner, recipient, mint_amount) =
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/simulator/src/public/apps_tests/token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('Public TX simulator apps tests: TokenContract', () => {
],
);
expect(balResult.revertCode.isOK()).toBe(true);
expectAppCall0Output(balResult, [new Fr(expectedBalance), Fr.zero()]);
expectAppCall0Output(balResult, [new Fr(expectedBalance)]);
};
});

Expand Down

0 comments on commit 2a6b583

Please sign in to comment.