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

pxe_simulateUnconstrained should return an ABI encoded value #11275

Open
olehmisar opened this issue Jan 16, 2025 · 0 comments
Open

pxe_simulateUnconstrained should return an ABI encoded value #11275

olehmisar opened this issue Jan 16, 2025 · 0 comments
Labels
from-community This originated from the community :)

Comments

@olehmisar
Copy link
Contributor

olehmisar commented Jan 16, 2025

Similar to how pxe_simulateTx returns ABI encoded values, pxe_simulateUnconstrained should also do that. Right now it returns AbiDecoded, which is not JSON serializable. I need it for wallet RPC.

Right now I am forced to use jsonStringify [1] and jsonParseWithSchema [2] to make it JSON serializable

[1] https://github.com/olehmisar/aztec-wallet-sdk/blob/0d55a730fc549964cd2af7ee2460029a28414448/src/exports/eip1193.ts#L230-L231
[2] https://github.com/olehmisar/aztec-wallet-sdk/blob/0d55a730fc549964cd2af7ee2460029a28414448/src/contract.ts#L139-L140

from https://discord.com/channels/1144692727120937080/1329515708488355882

@critesjosh critesjosh added the from-community This originated from the community :) label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from-community This originated from the community :)
Projects
None yet
Development

No branches or pull requests

2 participants