Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Mar 25, 2021
1 parent 483b881 commit 7220541
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -39,7 +39,7 @@ This repo contains:
Contract has a `recoverERC20` function that transfers a `tokenAmount` amount of `tokenAddress` token to the contract owner.

```solidity
function recoverERC20(address tokenAddress, uint256 tokenAmount) public onlyOwner;
function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner;
```

Note: only owner can call the `recoverERC20` function so be careful when use on contracts generated from other contracts.
Expand Down
4 changes: 2 additions & 2 deletions contracts/TokenRecover.sol
Expand Up @@ -8,7 +8,7 @@ import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title TokenRecover
* @author Vittorio Minacori (https://github.com/vittominacori)
* @dev Allow to recover any ERC20 sent into the contract for error
* @dev Allows owner to recover any ERC20 sent into the contract
*/
contract TokenRecover is Ownable {

Expand All @@ -17,7 +17,7 @@ contract TokenRecover is Ownable {
* @param tokenAddress The token contract address
* @param tokenAmount Number of tokens to be sent
*/
function recoverERC20(address tokenAddress, uint256 tokenAmount) public onlyOwner {
function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner {
IERC20(tokenAddress).transfer(owner(), tokenAmount);
}
}
2 changes: 1 addition & 1 deletion hardhat.config.js
Expand Up @@ -13,7 +13,7 @@ module.exports = {
},
},
solidity: {
version: '0.8.1',
version: '0.8.3',
settings: {
optimizer: {
enabled: true,
Expand Down
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -45,27 +45,27 @@
},
"homepage": "https://github.com/vittominacori/eth-token-recover",
"dependencies": {
"@openzeppelin/contracts": "4.0.0-beta.0"
"@openzeppelin/contracts": "4.0.0"
},
"devDependencies": {
"@nomiclabs/hardhat-ganache": "^2.0.0",
"@nomiclabs/hardhat-truffle5": "^2.0.0",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@openzeppelin/test-helpers": "^0.5.10",
"@vuepress/plugin-google-analytics": "^1.8.2",
"chai": "^4.3.0",
"eslint": "^7.20.0",
"chai": "^4.3.4",
"eslint": "^7.22.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-mocha-no-only": "^1.1.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^5.0.0",
"ganache-cli": "^6.12.2",
"hardhat": "^2.0.11",
"solhint": "^3.3.2",
"solidity-coverage": "^0.7.15",
"truffle": "^5.1.67",
"hardhat": "^2.1.2",
"solhint": "^3.3.4",
"solidity-coverage": "^0.7.16",
"truffle": "^5.2.5",
"vuepress": "^1.8.2"
}
}
2 changes: 1 addition & 1 deletion truffle-config.js
@@ -1,7 +1,7 @@
require('chai/register-should');

const solcStable = {
version: '0.8.1',
version: '0.8.3',
settings: {
optimizer: {
enabled: true,
Expand Down

0 comments on commit 7220541

Please sign in to comment.