I can not install package.json dependencies in my truffle project and I have tried touch.json. it's giving me errors. I have also tried truffle init, but it is
I have problem connected to python. I want to compile solidity files using python. But getting error. import json from solcx import compile_standard, inst
Good day everyone, I am working on a lottery smart contract. I am currently done with the remix VM tests and proceeded with the unit tests with JavaScript. The
I built a test solidity pure function to display a greeting message. It only returns a string "Hello User". Here is the contract code: //SPDX-License-Identifie
I deployed an ERC20/BEP20 token on binance smart chain using truffle and openzepplin. Now I want to verify this smart contract but I have some issues. $ truffle
I'm using Visual Studio Code and every time I run brownie compile I get this which takes a good while (and also I can't compile without internet connection): I
If I mint a collection of n items on my own address (via smart contract) , it'll be publicly visible on my account under the collected / created section like th
I want to create a contract that buys and sells to a fixed price which can be set with a contract interaction onlyOwner basically i need a token vendor with edi
I have a security problem in my Solidity contracts and I can't figure out how to fix it. The flow goes like this: First, we create an instance of contract A; Cr
I forked a contract, it is a Baked Beans fork on MATIC, I deployed the contract through Remix, now when I try to deposit through my website script, Metamask say
I am trying to switch my contract to use the 'import "@openzeppelin/contracts/access/Ownable.sol”’, but I am getting the following error contracts/I
I am trying to send ETH to a contract function from a web app via metamask and ethers.js. So far I have tried: const provider = new ethers.providers.Web3Provide
I want the best method to implement these two lines. Goal: Obtain the object of a smart contract named dev-token. async function ... { ... const web3 =
PancakeSwap is driving me crazy! I have this simple contract: when the token are transferred from someone different from the owner, instead of making the transe
I am pretty new to development and asking questions on stackoverflow, so if there is something else I could provide, please tell me in comments! I have installe
I have a function in my smart contract where I am trying to return some data that has been stored in the blockchain, function showOrg(address org) external
I'm new to solidity. I'm currently getting the following error TransferHelper: TRANSFER_FROM_FAILED from the safeTransferFrom function. Can someone tell me why?
I have a simple ERC721 smart contract used for testing purposes, I was wondering if it is possible to query the token IDs a specific wallet owns in that smart c
i have the abi json file for a contract and i want to use its functions in my smart contract. is there any way to do it? for example i have a contractA.sol and
just started a solidity coding course and ran into this issue with this code: //SPDX-License-Identifier: MIT pragma solidity >=0.6.0; import "./simplestora