v6.0.0
What's Changed
- feat: add ERC1363Payable contract as example
- feat: add ERC20 tests against ERC1363
- feat: rename owner to initialHolder to avoid confusion
- feat: move ERC1363Guardian to presets
- chore: remove truffle
- chore: bump version
- fix(ci): temp disable slither pragma detector d4ea674
NOTE
ERC1363Guardian
, has been moved from examples
to presets
.
If you used ERC1363Guardian
update your contracts with the new path. You MUST also implements _transferReceived
and _approvalReceived
.
pragma solidity ^0.8.20;
-import {ERC1363Guardian} from "erc-payable-token/contracts/examples/ERC1363Guardian.sol";
+import {ERC1363Guardian} from "erc-payable-token/contracts/presets/ERC1363Guardian.sol";
contract MyContract is ERC1363Guardian {
// your stuff
+ function _transferReceived(address token, address operator, address from, uint256 value, bytes calldata data) internal override {
+ // your stuff
+ }
+ function _approvalReceived(address token, address owner, uint256 value, bytes calldata data) internal override {
+ // your stuff
+ }
}
Full Changelog: v5.4.0...v6.0.0