How to resolve this error in solidity “The constructor should be payable if you send value.”?

In this solidity code the finalizeRequest() is giving a run-time error. Here is the error : Campaign.finalizeRequest(uint256) 0x692…77b3a transact to Campaign.finalizeRequest errored: VM error: revert. revert The transaction has been reverted to the initial state. Note: The constructor should be payable if you send value. Debug the transaction to get more information. Here is the…

How can i call a contract with the initial address of the sender?

I have a deployed contract. This contract allows only Whitelisted Addresses to call its function. Here is my code to call this “abc” function. pragma solidity >=0.4.22 <0.6.0; contract test3 { function func(address addr) public payable{ bytes32 test=…; (bool success, bytes memory returndata) = addr.delegatecall(abi.encodeWithSignature(“abc(bytes32)”,test)); require(success, string (returndata)); } } This code gives me an…

Truffle test: “Cannot read property ‘gasUsed’ of null” error. Truffle migrate works fine

Whenever I try and do truffle test I get the error Cannot read property ‘gasUsed’ of null But truffle migrate –reset works fine More confusingly, to rule out something in one of my tests that is causing the problem, I have deleted everything from the tests folder. So- to my understanding- if there is nothing…