Skip to content

Commit

Permalink
fix: correct validation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShaito committed Jul 26, 2024
1 parent 0a73215 commit 43251e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion solidity/contracts/extensions/AccountingExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ contract AccountingExtension is IAccountingExtension {
revert AccountingExtension_InsufficientAllowance();
}

// if (!(_approvals[_bonder].contains(msg.sender) && (_bonder != _sender && _approvals[_bonder].contains(_sender)))) {
// if (!(_approvals[_bonder].contains(msg.sender) && (_bonder == _sender || _approvals[_bonder].contains(_sender)))) {
// revert AccountingExtension_InsufficientAllowance();
// }

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,9 @@ dotgitignore@^2.1.0:
find-up "^3.0.0"
minimatch "^3.0.4"

"ds-test@git+https://github.com/dapphub/ds-test.git":
"ds-test@https://github.com/dapphub/ds-test":
version "1.0.0"
resolved "git+https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0"
resolved "https://github.com/dapphub/ds-test#e282159d5170298eb2455a6c05280ab5a73a4ef0"

"ds-test@https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0":
version "1.0.0"
Expand Down Expand Up @@ -1356,9 +1356,9 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==

"forge-std@git+https://github.com/foundry-rs/forge-std.git":
"forge-std@https://github.com/foundry-rs/forge-std":
version "1.9.1"
resolved "git+https://github.com/foundry-rs/forge-std.git#c28115db8d90ebffb41953cf83aac63130f4bd40"
resolved "https://github.com/foundry-rs/forge-std#c28115db8d90ebffb41953cf83aac63130f4bd40"

"forge-std@https://github.com/foundry-rs/forge-std.git#f73c73d2018eb6a111f35e4dae7b4f27401e9421":
version "1.7.1"
Expand Down

0 comments on commit 43251e9

Please sign in to comment.