Error importing oppenZepelin on remix.ide #3097
Unanswered
ChinonsoUbanna
asked this question in
Q&A
Replies: 3 comments 3 replies
-
|
Please share your code So that I can try on my end. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
pragma solidity ^0.8.0;
// Import ERC20 Contract from OpenZeppelin
import "https://t.co/4n9FefKi59";
// contract x { ... }
contract LW3Token is ERC20 {
constructor(string memory _name, string memory _symbol) ERC20(_name,
_symbol) {
_mint(msg.sender, 10 * 10 ** 18);
}
}
…On Tue, 24 Dec 2024, 20:29 EngrPips, ***@***.***> wrote:
Please share your code So that I can try on my end.
—
Reply to this email directly, view it on GitHub
<#3097 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLCVF5CPN5NPYGZZSHXXYXD2HGYY3AVCNFSM6AAAAABUFDE4UGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRVHE4TCOA>
.
You are receiving this because you authored the thread.Message ID:
<Cyfrin/foundry-full-course-cu/repo-discussions/3097/comments/11659918@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I meant import "
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts%2Ftoken%2FERC20%2FERC20.sol
"
…On Tue, 24 Dec 2024, 20:44 David Ubanna, ***@***.***> wrote:
pragma solidity ^0.8.0;
// Import ERC20 Contract from OpenZeppelin
import "https://t.co/4n9FefKi59";
// contract x { ... }
contract LW3Token is ERC20 {
constructor(string memory _name, string memory _symbol) ERC20(_name,
_symbol) {
_mint(msg.sender, 10 * 10 ** 18);
}
}
On Tue, 24 Dec 2024, 20:29 EngrPips, ***@***.***> wrote:
> Please share your code So that I can try on my end.
>
> —
> Reply to this email directly, view it on GitHub
> <#3097 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BLCVF5CPN5NPYGZZSHXXYXD2HGYY3AVCNFSM6AAAAABUFDE4UGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRVHE4TCOA>
> .
> You are receiving this because you authored the thread.Message ID:
> <Cyfrin/foundry-full-course-cu/repo-discussions/3097/comments/11659918@
> github.com>
>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
pls when i compile the file using remix.ide i get Error: not found https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol everytime, i have tried many times but keep getting this
Beta Was this translation helpful? Give feedback.
All reactions