Consensys / gpact

General Purpose Atomic Crosschain Transaction Protocol
Apache License 2.0
83 stars 26 forks source link

Add ability to return any value from a crosschain function call #139

Closed drinkcoffee closed 2 years ago

drinkcoffee commented 2 years ago

Add a new function to the GPACT API for returning the bytes return value. This allows calling application code to decode the actual result, whether is be a single value or multiple values.

Added an example showing how to use the new functionality. Additionally, this example is used to test the functionality.

Resolves issue: https://github.com/ConsenSys/gpact/issues/15