ContractId.fromEvmAddress(0, 0, 0xAddress)
as parameter for setSupplyKey in TokenUpdateTransaction
seems to save a different value
#2626
Labels
Problem
When using the SDK method ContractId.fromEvmAddress() to convert an EVM address into a Hedera ContractId for TokenUpdate transactions (specifically to set the supply key), the resulting value becomes 0.0.0. This behavior occurs even when providing a valid deployed contract’s EVM address.
Description
When using the SDK method
ContractId.fromEvmAddress()
to convert an EVM address into a HederaContractId
forTokenUpdate
transactions (specifically to set the supply key), the resulting value of the updated supply key becomes0.0.0
. This behavior occurs even when providing a valid deployed contract’s EVM address.Steps to Reproduce
ContractId
:const contractId = ContractId.fromEvmAddress(0, 0, deployedContract0xAddress);
Solution
I do not know what the best solution would be, but this is the way I was able to set the contract as the supply key
setSupplyKey
inTokenUpdateTransaction
Alternatives
It would be nice if I could just pass something like
const contractId = ContractId.fromEvmAddress(0, 0, deployedContract0xAddress)
orPublicKey.fromStringECDSA(deployedContract0xAddress)
The text was updated successfully, but these errors were encountered: