Let's say for example we have a transaction with this Input Data and this Smart Contract Result
- Input data:
issueNonFungible@415344@415344
- Result:
@ok@4153442d383661353439
It's a simple creation of a new NFT Collection. It can be seen on the devnet at this txHash:
290498e8730975ea6d2703f4c5e0dc2c657b9480b9afc2a62c4c8818636cf062
I am trying to get the response of the smart contract. This is the code I have now with the consts.walletAddress being the wallet address of the sender of the initial transaction.
var txHash = new TransactionHash("290498e8730975ea6d2703f4c5e0dc2c657b9480b9afc2a62c4c8818636cf062");
var toTest = await this.provider.getTransaction(txHash, new Address(consts.walletAddress), true);
var scResults = await toTest.getSmartContractResults();
console.log(scResults)
Here is what the console.log
outputs:
The problem is that no data is outputted for the Smart Contract Results so I can not get the response of the smart contract. Am I doing something wrong or is this a bug in erdJs?