Hey Guys,

Im getting this error while verifying on rinkeby testnet,

Can anyone help?

TypeError: Definition of base has to precede definition of derived contract
--> myc:19:30:
|
19 | abstract contract Ownable is Context {
| ^^^^^^^

Sep 20, 2021, 1:02 PM
Im verifying flattened contract, since etherscan was not importing openzeppelin
no I didnt deploy the flattened one
Sep 20, 2021, 1:05 PM
ok then just change the flattened
Sep 20, 2021, 1:06 PM
here's the flattened file
says this


TypeError: Definition of base has to precede definition of derived contract
--> Test/Full.sol:22:30:
|
22 | abstract contract Ownable is Context {
| ^^^^^^^
Sep 20, 2021, 1:07 PM
exactly
put Context part before it
put here
Sep 20, 2021, 1:08 PM
Sep 20, 2021, 1:10 PM
no bro I told another thing
can you please show me where is the implementation of Context
abstract contract Context{....

}
Sep 20, 2021, 1:12 PM
Ive pme'd you
Sep 20, 2021, 1:13 PM
Easier to deploy with hardhat tbh. No flattened ,no bs, it just works
Sep 20, 2021, 3:08 PM
He doesn't even know what the code does
so I think hardhat is too much
Sep 20, 2021, 3:09 PM
Aah, 😅 I'm always assuming that people here know how to code at least...
Sep 20, 2021, 3:09 PM
just a dream
Sep 20, 2021, 3:10 PM
haha too much for us learners
Sep 20, 2021, 3:17 PM
damn just got an unserious client that told me pcs doesnt have yield farming and liquidity mining...
Is this pancakeswap v2 address?
https://bscscan.com/address/0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F
Sep 20, 2021, 4:11 PM
v1
Sep 20, 2021, 4:11 PM
thx
Sep 20, 2021, 4:11 PM
v2 is 0x10E...
Sep 20, 2021, 4:11 PM
Any projects like https://exchange.goosedefi.com/ that use pancake v2?
Sep 20, 2021, 4:16 PM

© 2024 Draquery.com All rights reserved.