We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Currently, users will get Internal error when using Hardhat to deploy a smart contract. The transaction contains INVALID_SOLIDITY_ADDRESS error as shown in https://hashscan.io/#/testnet/transaction/0.0.46030734-1655918065-252797715?t=1655918078.085442000
Internal error
INVALID_SOLIDITY_ADDRESS
Please feel free to use the following script to reproduce the problem https://github.com/pathornteng/hedera-hardhat
Note: I can use Truffle to deploy a smart contract to Hedera network just fine.
Hardhat might be using different formats or values. Further investigation is required.
No response
The text was updated successfully, but these errors were encountered:
Likely related to #193 Let's investigate why truffle works fine, does it just not check for a valid contract id?
Sorry, something went wrong.
@pathornteng
As far as I can see, you are using a contract with console.logs in it.
console.log
That's not supported in Hedera, and the thrown error is INVALID_SOLIDITY_ADDRESS. Remove console.log lines and import statement from the head.
👇 Here is an example of a clean contract 👇
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; contract Greeter { string private greeting; constructor(string memory _greeting) { greeting = _greeting; } function greet() public view returns (string memory) { return greeting; } function setGreeting(string memory _greeting) public { greeting = _greeting; } }
@natanasow You are right. I removed the console.log and it works!
Thanks for the answer :)
natanasow
No branches or pull requests
Problem
Currently, users will get
Internal error
when using Hardhat to deploy a smart contract. The transaction containsINVALID_SOLIDITY_ADDRESS
error as shown in https://hashscan.io/#/testnet/transaction/0.0.46030734-1655918065-252797715?t=1655918078.085442000Please feel free to use the following script to reproduce the problem
https://github.com/pathornteng/hedera-hardhat
Note: I can use Truffle to deploy a smart contract to Hedera network just fine.
Solution
Hardhat might be using different formats or values. Further investigation is required.
Alternatives
No response
The text was updated successfully, but these errors were encountered: