Hot answers tagged

1

When you create a contract, it doesn't call a fallback. It calls the constructor. If you want to be able to send ETH with the creation of your contract, you need to mark the contructor as payable, like this: constructor() public payable { owner = msg.sender; }


1

Of course it fails since you don't have the Openzeppelin contracts in Remix. This has nothing to do with the "@" syntax. The "@" just indicates the owner of a specific npm package. In Remix you can either Import the file directly via Github. Download the file and manually insert it. Automatic import via Github would work like this ...


Only top voted, non community-wiki answers of a minimum length are eligible