Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { ERC20 } from "@rari-capital/solmate/src/tokens/ERC20.sol";
import { ERC721 } from "@rari-capital/solmate/src/tokens/ERC721.sol";
import { Transactor } from "./Transactor.sol";

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Owned } from "@rari-capital/solmate/src/auth/Owned.sol";

/**
* @title Transactor
* @notice Transactor is a minimal contract that can send transactions.
*/
contract Transactor is Ownable {
contract Transactor is Owned {
/**
* @param _owner Initial contract owner.
*/
constructor(address _owner) Ownable() {
transferOwnership(_owner);
}
constructor(address _owner) Owned(_owner) {}

/**
* Sends a CALL to a target address.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('AssetReceiver', () => {
AssetReceiver.connect(signer2)['withdrawETH(address)'](
signer2.address
)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down Expand Up @@ -119,7 +119,7 @@ describe('AssetReceiver', () => {
DEFAULT_RECIPIENT,
DEFAULT_AMOUNT
)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down Expand Up @@ -156,7 +156,7 @@ describe('AssetReceiver', () => {
TestERC20.address,
DEFAULT_RECIPIENT
)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down Expand Up @@ -193,7 +193,7 @@ describe('AssetReceiver', () => {
AssetReceiver.connect(signer2)[
'withdrawERC20(address,address,uint256)'
](TestERC20.address, DEFAULT_RECIPIENT, DEFAULT_AMOUNT)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down Expand Up @@ -236,7 +236,7 @@ describe('AssetReceiver', () => {
DEFAULT_RECIPIENT,
DEFAULT_TOKEN_ID
)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('AssetReceiver', () => {
gasLimit: 2_000_000,
}
)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('AssetReceiver', () => {
gasLimit: 2_000_000,
}
)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('Drippie', () => {
DEFAULT_DRIP_NAME,
DEFAULT_DRIP_CONFIG
)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('Drippie', () => {
it('should revert', async () => {
await expect(
Drippie.connect(signer2).status(DEFAULT_DRIP_NAME, 1)
).to.be.revertedWith('Ownable: caller is not the owner')
).to.be.revertedWith('UNAUTHORIZED')
})
})
})
Expand Down