Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

502
Views
ProviderError: Error: Transaction reverted without a reason string

I am trying to run a certain function after deploying the smart contract. the transaction unfortunately is always being reverted without any reason.

This is my code :

function sign(bytes32 hash, bytes32 signatureHash, address signer) public {
    console.log("Entered Sign Function");
   // require(checkDoc(hash),"check doc failed");
     //   require(documents[hash].signers[signer] == 1, "signer failed");
        documents[hash].remainingSignatures--;
        documents[hash].signers[signer] = block.timestamp;
        emit Signature(hash, signatureHash, signer, 'Signature');
        if (documents[hash].remainingSignatures == 0){
            documents[hash].status = currentState.signed;
            emit Signed(hash, 'Signed');
}
}

I am using hardhat for local development and alchemy for provider. The transaction is getting reverted without any reasons.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!