-
Notifications
You must be signed in to change notification settings - Fork 148
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
ContractId not usable for allowance approval via AccountAllowanceApproveTransaction #1557
Comments
Hello @Burstall and than you for your issue, I've created this example based on your explanations:
I am getting the error I am going to dig it.
|
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Using an AccountAllowanceApproveTransaction() and passing in a ContractId object throws an error.
Forcing conversion via solidity Address -> AccountId.fromSolidityAddress(_contractId.toSolidityAddress())
(or fromString()/toString())
In the past, I never had to do this, but in recent SDK versions, I have to make this change; unsure which version it changed.
Possibly it was intentional
Steps to reproduce
Additional context
No response
Hedera network
mainnet, testnet
Version
@hashgraph/sdk@2.22.0
Operating system
None
The text was updated successfully, but these errors were encountered: