ParserError: Source file requires different compiler version (current compiler is 0.6.0+commit.26b70077.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.5.0
^ (Relevant source part starts here and spans across multiple lines).
Error: Truffle is currently using solc 0.6.0, but one or more of your contracts specify "pragma solidity ^0.5.0
^ (Relevant source part starts here and spans across multiple lines).
".
Please update your truffle config or pragma statement(s).
(See https://trufflesuite.com/docs/truffle/reference/configuration#compiler-configuration for information on
configuring Truffle to use a specific solc compiler version.)
Compilation failed. See above.
Truffle v5.4.6 (core: 5.4.6)
Node v14.14.0
does anyone know why i have error while compiling? solc version: 0.6.0 and in contracts ^0.5.0
Aug 19, 2021, 7:34 PM
you can use max 0.5.17
Aug 19, 2021, 7:35 PM
as solc version or at pragma declaration?
Aug 19, 2021, 7:35 PM
as compiler version
btw I suggest to upgrade it to a new version
btw I suggest to upgrade it to a new version
Aug 19, 2021, 7:35 PM
how? npm update ?
i changed solc version to 0.5.17 still same error
Aug 19, 2021, 7:36 PM
you can't put the same address
do they have router and presale addresses?
Aug 19, 2021, 7:46 PM
I tried asking their admins
They keep dilly dallying
Aug 19, 2021, 7:47 PM
you must have a payable function
Aug 19, 2021, 8:29 PM
where i already have
Aug 19, 2021, 8:31 PM
no
which is the function that should receive ETH?
Aug 19, 2021, 8:31 PM
payout()
Aug 19, 2021, 8:33 PM
payout is used to send ETH
not to receive
Aug 19, 2021, 8:34 PM
let me try that now. thanks
i think the setaccount() does that
Aug 19, 2021, 8:36 PM
then add "payable"
before public
Aug 19, 2021, 8:37 PM
still getting same ish
error
Aug 19, 2021, 8:42 PM
show what you have done
Aug 19, 2021, 8:42 PM
Aug 19, 2021, 8:46 PM
ok then what you try to do?
Aug 19, 2021, 8:46 PM
i have gotten the answer
thanks guys
Aug 19, 2021, 9:02 PM