1
0

🏗️」 wip(wallet): better tests added

This commit is contained in:
2025-08-10 20:35:51 +02:00
parent 164f8b80c8
commit c0deaf6326
2 changed files with 37 additions and 31 deletions

View File

@ -34,11 +34,11 @@ contract knlWallet {
modifier isOwner() {
for (uint256 i = 0; i < owners.length; i++) {
if (owners[i] == msg.sender) {
_;
return;
_;
return;
}
}
revert("need to be owner");
revert("need to be owner");
}
receive() external payable { }
@ -90,7 +90,9 @@ contract knlWallet {
}
function executeTransaction(uint256 transactionId) public isOwner {
require(isConfirmed(transactionId), "transaction has not been confirmed");
require(
isConfirmed(transactionId), "transaction has not been confirmed"
);
Transaction storage _tx = transactions[transactionId];
if (_tx.tokenAddress == address(0)) {