Skip to main content

Questions tagged [truffle-contract]

0 votes
1 answer
117 views

Contract Code: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/...
Lucky Rajput's user avatar
0 votes
1 answer
30 views

I am trying to call an AddDeviceOwner function from python. Somehow it is not working as nothing returns, not even an error. I tried the same in the Truffle Dev console and it works. Can anyone share ...
Jun Xiao's user avatar
0 votes
1 answer
51 views

Using truffle and makes me use truffle console but I dont want to and wouldnt either. Is there any other way interact with contracts and controlling their propreties and everything with an app or ...
seojunchian's user avatar
0 votes
2 answers
151 views

I have a basic smart contract that sets the hash of a string and retrieves it along with verification. The contract works perfectly fine, but the issue is with the .send method of web3 that reverts ...
Andrea Ross's user avatar
1 vote
0 answers
48 views

Everything is in the question, does anyone have a way to prevent the redeployment of the contract every time you run a test and keep using the same "contract" feature ? Edit : I've found it, ...
Raphael's user avatar
  • 51
1 vote
0 answers
42 views

I was following an old Ethereum dapp tutorial to make a voting dapp. It uses truffle contract, web3js and ganache and when i access the pages via localhost i get the following error in the console: ...
Frenzied2498's user avatar
2 votes
3 answers
897 views

I created new folder in truffle with command truffle init version of truffle and others Truffle v5.5.30 (core: 5.5.30) Ganache v7.4.0 Solidity - 0.8.17 (solc-js) Node v16.16.0 Web3.js v1.7.4 but it ...
vishal's user avatar
  • 23
1 vote
0 answers
210 views

When I try deploying with command npx truffle migrate --config=truffle-config.js --network polygon, I get the following error. Error [ERR_UNHANDLED_ERROR]: Unhandled error. ([object Object]) at ...
P A S H's user avatar
  • 138
1 vote
1 answer
33 views

What is the difference between using mapping and without mapping? can I declare the tickets variable with mapping? Ticket[TOTAL_TICKETS] public tickets; Here is the solidity smartcontract pragma ...
B L Praveen's user avatar
0 votes
1 answer
66 views

I have a function where I insert patient's info into a mapping and it works perfectly fine on remix and in the truffle console. function createPatient (uint _SecretNum, string memory _name, uint _dob, ...
youssef_tawfik11's user avatar
0 votes
1 answer
454 views

As my smart contract is >24k, I read that I need to break it into multiple (smaller) smart contracts. So, my current design is to have a Core contract that has all the data in arrays. This Core has ...
jlee88my's user avatar
  • 103
0 votes
0 answers
488 views

I'm trying to develop my first DAPP based on this tutorial (https://livebook.manning.com/book/building-ethereum-dapps/chapter-12/) and I'm encountering some errors in the javascript part. In ...
Sandruz's user avatar
1 vote
1 answer
466 views

I'm using node version 12.20.2 and npm version 6.14.11 and installed truffle with cmd as administrator, the truffle framework version 5.5.12 has been installed but when I run any command in the vs ...
Prabhat Dongare's user avatar
0 votes
1 answer
146 views

I'm trying to install truffle on node version 8.9.0 but it shows it has been installed and when I try to do anything on that, throws this error. C:\Users\com\AppData\Roaming\nvm\v8.9.0\node_modules\...
Prabhat Dongare's user avatar
0 votes
1 answer
485 views

Here is the contract code to mint ERC721 tokens: contract NFT is ERC721URIStorage, Ownable { mapping(uint256 => address) private _owners; mapping(address => uint256) private _balances; ...
Sagar Atalatti's user avatar

15 30 50 per page
1
2 3 4 5
22