Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 98976

Solidity is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed for writing smart contracts in Ethereum to run on the EVM. Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.

1 vote
Accepted

Pick Winner Lottery test throws; Error: Transaction has been reverted by the EVM

The problem was that I never set the manager role before I tried picking the winner. It's failing because at the time of calling pickWinner() method, manager address is null, and this would fail from …
kihiuFrank's user avatar
0 votes
3 answers
233 views

Pick Winner Lottery test throws; Error: Transaction has been reverted by the EVM

My Lottery.sol file; pragma solidity ^0.8.13; contract Lottery { address public manager; address payable[] public players; function myLottery() public { manager = msg.sender; … require("fs"); const solc = require("solc"); const lotteryPath = path.resolve(__dirname, "contracts", "Lottery.sol"); const source = fs.readFileSync(lotteryPath, "utf8"); let input = { language: "Solidity
kihiuFrank's user avatar
1 vote
1 answer
67 views

My unit tests fail with different error. What I'm I doing wrong?

PriceNotMet' The third test reverts with; Error: VM Exception while processing transaction: reverted with custom error 'Ecommerce__PriceNotMet()' Ecommerce.sol // SPDX-License-Identifier: MIT pragma solidity
kihiuFrank's user avatar
0 votes
1 answer
20 views

How do I update a campaign without it creating a new campaign?

I'm working on the update campaign feature in a project. First Issue - Prefilling the form fields I want first to prefill the form fields then from there, a user can change what they want. In the /pag …
kihiuFrank's user avatar
4 votes
2 answers
2k views

Test fails with custom error despite having "MyCustomError"

I'm writing a test that requires enterRaffle() to be reverted with MyCustomError - "Raffle__NotEnoughEthEntered" describe("enterRaffle", async function () { it("reverts when you don't pa …
kihiuFrank's user avatar
1 vote
0 answers
414 views

How do I solve error 'missing revert data in call exception'?

I'm trying to withdraw donations from a single campaign. When I click the withdraw button it loads then reverts with the error; Error occurred while withdrawing funds Error: ╔═══════════════════╗ ║ …
kihiuFrank's user avatar
0 votes
2 answers
94 views

How do I test burning tokens in my ICO contract?

I'm writing tests for the burn func in ICO.sol The first two tests are passing, but when I come to test where the tokens are indeed burned, the state of the ICO seems to change. To burn tokens, the IC …
kihiuFrank's user avatar