Questions tagged [truffle]
Questions regarding the implementation and use of the Truffle development and testing environment.
2,913 questions
0 votes
0 answers
33 views
Truffle deployment error: Ownable contract on Ganache
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract BalanceGame is Ownable { constructor(uint256 _cost) Ownable(...
0 votes
1 answer
44 views
Truffle test error "VM exception" ERC721
I have just created a .sol contract inheriting from openzeppelin ERC721. I have also written some tests, but I get the following errors: Here is the code for .sol file: // SPDX-License-Identifier: ...
1 vote
0 answers
43 views
Truffle Test Executed with 0 passing
I am new to blockchain and trying to learn blockchain using Etherium environment with ReactJS. For learning purpose, I am following below link: https://www.dappuniversity.com/articles/blockchain-...
1 vote
1 answer
82 views
truffle console doesnt work: Unexpected error setting up the environment or provisioning contracts while instantiating the console
(base) ➜ METoken truffle console bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) Unexpected error setting up the environment or provisioning contracts ...
0 votes
1 answer
44 views
Wrong type of smart contract being instantiated on using new keyword
I have 2 smart contracts A and B that I have defined in the same file. B is used to instantiate A using the new keyword. However, when I try to interact on Remix with the newly instantiated contract ...
1 vote
0 answers
30 views
Why are my exceptions rendered differently after versions update?
I don't remember the previous versions I was using but I remember upgrading because I hoped to have a local test network (via Ganache) supporting EIP-1559. My versions are: Truffle v5.11.5 (core: 5.11....
1 vote
0 answers
54 views
Truffle migration of an ownable contract
Initially, I deploy everything using REMIX IDE, currently I would like to try to deploy a contract that is ownable into local ganache blockchain using truffle migration: pragma solidity ^0.8.18; ...
1 vote
0 answers
137 views
RuntimeError: VM Exception while processing transaction: revert\n at EIP1559FeeMarketTransaction.fillFromResult
I've been working on a smart contract in Solidity, the code shown below: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; ...