Skip to content

Commit

Permalink
[CHAIN-56] fix argument order in custom error (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyqs authored Oct 6, 2024
1 parent b20599e commit fa4e0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart-wallets/src/extensions/AssetVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ contract AssetVault is IAssetVault {
revert InvalidExpiration(expiration, block.timestamp);
}
if (allowance.expiration != expiration) {
revert MismatchedExpiration(allowance.expiration, expiration);
revert MismatchedExpiration(expiration, allowance.expiration);
}
if (allowance.amount < amount) {
revert InsufficientYieldAllowance(assetToken, beneficiary, allowance.amount, amount);
Expand Down

0 comments on commit fa4e0bf

Please sign in to comment.