-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you call the create NFT function it always fails with an "UNKNOWN" error #80
Comments
I wonder if this is an issue because it's in a ContractCreateTransaction. But per the deployer the function Rather than using a one-step deployer, could you deploy the contract, and then call the |
We fixed the formatting and the deployer is incomplete we will update it. We basically took this sample code provided, ran it and it is not working. Do you happen to have sample code that will allow us to deploy and make calls to it? |
There should be two steps in the deployer code, because the contract has no constructor. The TX link you gave me couldn't have come from that code snippet alone, there had to be constructor code running a function call after the contract deployment. |
Hi @jruffer thanks for the ticket. Could you please up date the Description and Steps to reproduce sections with the reproduce-able sequenced steps you took capturing
You had some but if you could complete it then we can take a look and adequately triage it. |
Hey @Nana-EC! I created the example in the docs that @jruffer is talking about. I had some time to review it, and the type of the maxSupply field in the HederaToken struct seems to be the problem. The older precompiled version used to have uint32, but now it's int64. By changing again to uint32 in the IHederaTokenService.sol the example works perfectly. (btw before changing to uint32 I also tried to work with int64 by changing the type in the js script and also in my contract but I was still getting UNKNOWN) See line here:
There's the full example in my repo here: https://github.com/cisc0f/hedera/tree/main/src/002_nft_hscs_hts |
@cisc0f Woo! That fixed it. Thank you. |
@cisc0f Do you want to do a pull request to fix the underlying issue in this library? |
Hi @jruffer and @cisc0f and @bgok just to close this off properly. What seems to have happened is the changes that represented the changes in services went in here before the services version was deployed. Additionally, we're working on versioning this repo to make it easy to coordinate such changes in the future |
Description
Example deployer:
Example of execution:
https://hashscan.io/#/testnet/transaction/0.0.48191765-1664809268-533358275?t=1664809279.658258643
If you look at the bottom of the logs data view, you will see the UNKNOWN error code.
0x0000000000000000000000000000000000000000000000000000000000000015
Steps to reproduce
Deploy contract...
wait a few seconds, and you will see the error...
@bgok
Additional context
No response
Hedera network
testnet
Version
v0.1.0
Operating system
No response
The text was updated successfully, but these errors were encountered: