smartcontractkit / functions-hardhat-starter-kit

MIT License
144 stars 103 forks source link

Need encode multiple value #183

Closed rooot044 closed 9 months ago

rooot044 commented 11 months ago

We need implement this function

FunctionsModule.encode(["uint256", "string", "int256"], [1, "test", -1]);

Because many production app needs multiple value response. it able to decode multiple value like this

function fulfillRequest(bytes32 requestId, bytes memory response, bytes memory err) internal override { abi.decode(response, (uint256, string, int256)); }

KuphJr commented 9 months ago

@rooot044 Thanks for the feature suggestion! I am going to close this issue, but know that your suggestion has been recorded internally.