contracts icon indicating copy to clipboard operation
contracts copied to clipboard

Problem: avoid Derived contract must override function _contextSuffixLength error

Open mmsqe opened this issue 9 months ago • 0 comments

Two or more base classes define function with same name and parameter types.
  --> @thirdweb-dev/contracts/infra/TWRegistry.sol:20:1:
   |
20 | contract TWRegistry is Multicall, ERC2771Context, AccessControlEnumerable {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "ERC2771Context": 
  --> @openzeppelin/contracts/metatx/ERC2771Context.sol:51:5:
   |
51 |     function _contextSuffixLength() internal view virtual override returns (uint256) {
   |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Context": 
  --> @openzeppelin/contracts/utils/Context.sol:25:5:
   |
25 |     function _contextSuffixLength() internal view virtual returns (uint256) {
   |     ^ (Relevant source part starts here and spans across multiple lines).

mmsqe avatar Mar 26 '25 01:03 mmsqe