「🏗️」 wip(wallet): better tests added
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user