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…