Hi
I deployed a BSC token using solidity, remix and metamask
It can be seen on bscscan.com
But I have a problem when verifying on bscscan

The error is:
Type error: Definition of base to procede definition of derived contract.

Anybody knows?

Jul 18, 2021, 5:56 AM
seems like a import file issue
is your abstract / base class from which you inherit in some other file which is imported ?
if you are using a flatenner you need to rearrange classee
Jul 18, 2021, 6:14 AM
Yes I imported ERC20.sol from github/openzeppelin but I flattened the code
How to rearrange classes?
Jul 18, 2021, 6:15 AM
actually it should throw an error in remix itself, if the order isnt correct
Jul 18, 2021, 6:15 AM
No it deployed!
Jul 18, 2021, 6:16 AM
the error is telling you base class should come before derived class
Jul 18, 2021, 6:16 AM
I change the contract I wrote and put it before ERC20. it didnt work
Jul 18, 2021, 6:17 AM
*after erc20
Jul 18, 2021, 6:17 AM
It was after ERC20 as default
I tried both of them.
Jul 18, 2021, 6:18 AM
you are probably missing something, should verify if it compiled on remix
send the error screenshot
dm
Jul 18, 2021, 6:22 AM

© 2024 Draquery.com All rights reserved.