Not able to Compile My Sol file #4879
-
This is the Error which I am constantly getting after getting through the Tutorial |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Try pragma solidity ^0.8.7 or ^0.8.6, instead of 0.8.17 |
Beta Was this translation helpful? Give feedback.
-
@AnugrahYadav Which lesson are you following? And what is your pragma version for your smart contracts? |
Beta Was this translation helpful? Give feedback.
-
Hi @AnugrahYadav. Could you please share the code related to this issue? Sometimes, the contracts that your contract inherits from use different Solidity versions, and this tree can go up to requiring several versions at the same time. That's why you might need to include these different compiler versions in your solidity: {
compilers: [
{
version: '0.8.8',
},
{
version: '0.4.24',
},
],
}, |
Beta Was this translation helpful? Give feedback.
-
Thank you I have resolved my issue from your solutions , and I am very much
grateful for you assistance thanks once again pal ,
…On Wed, Feb 22, 2023 at 2:30 PM polarzero ***@***.***> wrote:
Hi @AnugrahYadav <https://github.com/AnugrahYadav>. Could you please
share the code related to this issue? Sometimes, the contracts that your
contract inherits from use different Solidity versions, and this tree can
go up to requiring several versions at the same time.
That's why you might need to include these different compiler versions in
your hardhat.config.js file, in such a way:
solidity: {
compilers: [
{
version: '0.8.8',
},
{
version: '0.4.24',
},
],},
—
Reply to this email directly, view it on GitHub
<#4879 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQFYMOW6LWMS6WOL72ZD3BTWYXIT7ANCNFSM6AAAAAAVB4IM5I>
.
You are receiving this because you were mentioned.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/4879/comments/5074582
@github.com>
|
Beta Was this translation helpful? Give feedback.
Hi @AnugrahYadav. Could you please share the code related to this issue? Sometimes, the contracts that your contract inherits from use different Solidity versions, and this tree can go up to requiring several versions at the same time.
That's why you might need to include these different compiler versions in your
hardhat.config.js
file, in such a way: