Closed DOBEN closed 3 months ago
Separate the error text from the disclaimer.
In the future, it would be good to move the decodeRejectReason function into our SDKs for re-usability. https://github.com/Concordium/concordium-smart-contract-tools/blob/ef60b3cb6c396a013831c79c16bf961aa88292e1/front-end-tools/src/utils.ts#L165
decodeRejectReason
read
parseError
parseReturnValue
Purpose
Separate the error text from the disclaimer.
In the future, it would be good to move the
decodeRejectReason
function into our SDKs for re-usability. https://github.com/Concordium/concordium-smart-contract-tools/blob/ef60b3cb6c396a013831c79c16bf961aa88292e1/front-end-tools/src/utils.ts#L165Changes
read
function into smaller contained functions (such asparseError
andparseReturnValue
functions).