In this post, we will see how to resolve Data location must be “calldata” for parameter in external function, but none was given. –> Undeclared identifier Question: In Remix, I’m getting the following error. That error references the below line ...
In this post, we will see how to resolve Uploading images to Cloudinary with REMIX (Web Fetch API) Question: I am creating a form with Remix, and I want upload images to Cloudinary. I have here a Vanilla JS form ...
In this post, we will see how to resolve How to redirect to a custom 404 page in remix.run? Question: I am trying to redirect the URL to a custom 404 page in remix.run but not able to do so. ...
In this post, we will see how to resolve for loop is not working on array of structs in solidity Question: I am coding a simple voting system where a ‘chairperson’ is defined…Chairperson will add candidates but the voter are ...
In this post, we will see how to resolve Different return values in remix IDE and ethers js Question: I am trying to write a smart contract and call the functions in it using JavaScript. The relevant bits of the ...
Question: I am using the OpenZeppelin’s ERC721 Library, is there was a way to get the count of the number of times a token has been minted. Is there a built-in mapping or function to check that? Answer: You can ...
Question: I started learning Remix and got to a point where I would like to get some data from APIs. I created a loader function, in routes folder (initially I did this in component, which is wrong), where I fetch ...
Question: when inserting a value before deployment, I get this error, and if I don’t do it in this way the balance is 0, why? (sorry for this noob question) Answer: This error is because you can not use an ...
Question: I got an example of a solidity Interface. 1/ Any clue if this method is accurate as it’s implementing the Interface within the inherited from Contract and not within the extension Contract. 2/ I tried implementing it, contractA functions ...
Question: i receive this errors “false Transaction mined but execution failed”. Answer: When you’re deploying a contract, sending along ETH value, the constructor needs to be use the payable modifier – just like any other function receiving ETH. If you ...