Skip to content

Conversation

@nguyer
Copy link
Contributor

@nguyer nguyer commented Feb 3, 2023

This brings the contract address of a deployed contract all the way through to the transaction output when deploying a new smart contract. This shows up in a JSONAny field called contractLocation and looks like this in FireFly:

...
    "output": {
        "headers": {
            "requestId": "default:aa155a3c-2591-410e-bc9d-68ae7de34689",
            "type": "TransactionSuccess"
        },
        "contractLocation": {
            "address": "0x24746b95d118b2b4e8d07b06b1bad988fbf9415d"
        },
        "protocolId": "000000000024/000000",
        "transactionHash": "0x32d1144091877266d7f0426e48db157e7d1a857c62e6f488319bb09243f0f851"
    },
...

Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
@nguyer nguyer force-pushed the contract-location branch from 3b08f58 to 86161f3 Compare February 3, 2023 18:05
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
@nguyer nguyer merged commit f062a9c into hyperledger:main Feb 3, 2023
@nguyer nguyer deleted the contract-location branch February 3, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants