Closed Gau-thier closed 2 years ago
Contract address is not available in the receipts. Which means we cannot get it from /operations/{hash} in the API
/operations/{hash}
Add the contract address to the receipts
./start.sh
$ curl http://localhost:8080/api/v1/operations/Do3q6fNiXe2rEJ6ui8fJ6vGqiuT47R9rTnLbAZthrrBKCZsAchS4
["Vm_transaction_receipt",{"operation":"Do3q6fNiXe2rEJ6ui8fJ6vGqiuT47R9rTnLbAZthrrBKCZsAchS4","contract_address":"DK19EoKv6622gK1icUwG8E3ziPqKyqEMsx3N"}
Problem
Contract address is not available in the receipts. Which means we cannot get it from
/operations/{hash}
in the APISolution
Add the contract address to the receipts
Test it
./start.sh
Return must be something like following:
["Vm_transaction_receipt",{"operation":"Do3q6fNiXe2rEJ6ui8fJ6vGqiuT47R9rTnLbAZthrrBKCZsAchS4","contract_address":"DK19EoKv6622gK1icUwG8E3ziPqKyqEMsx3N"}