Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode reject reason at sponsoredTransactionAuction backend #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DOBEN
Copy link
Member

@DOBEN DOBEN commented Jul 15, 2024

Purpose

Related to #87

Blocked/Problem: This backend can not decode the reject reason and shows a limitation of our current approach.
The limitation occurs when there is a chain of smart contract calls (where the errors have not been nested in the ErrorSchema) and the rejection happens in a smart contract that was initially called by another smart contract. For example, this dapp uses 2 unrelated smart contracts (the cis2-token contract and the auction contract with no combined ErrorSchema). The auction contract could be replaced with any other defi protocol and as such we cannot nest the ErrorSchema into the cis2-token (and embed the nested ErrorSchema into the cis2-token contract) to be generic enough to interact with any defi protocol. The transaction execution first invokes the cis2-token contract which then invokes the aution contract which might reject (in this case we run into some limitation to decode the reject reason).

Some research needs to be done here on the best approach/solution since I expect that the contract call traces are not available in the contract-client of the Rust SDK currently which are needed to decode the reject reason without relying on a nested ErrorSchema.

Changes

_Describe the changes that were needed.

@DOBEN DOBEN changed the title Decode reject reason at sponsored transaction backend Decode reject reason at sponsoredtransactionAuction backend Jul 17, 2024
@DOBEN DOBEN changed the title Decode reject reason at sponsoredtransactionAuction backend Decode reject reason at sponsoredTransactionAuction backend Jul 17, 2024
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.

1 participant