-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix transaction summary with contract calls #2530
Labels
bug
Issue is a bug
Comments
I actually think this may be linked to #2448 |
Currently some sway docs are being written up around encoding v1 that can assist us with this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current implementation of the transaction summary uses the
param1
property from a contract call receipt to build out the contract element of the summary.As recently deduced,
param1
no longer represents the encoded function selector. Likewise,param2
does not represent the encoded function arguments. They now represent pointers to their respective data.Therefore currently the only way to deduce the function selector from a transaction is to decode it from the
scriptData
that was passed on the transaction, as documented here. This is becausescriptData
, when used with contracts, represents the entire contract call script.Therefore we need to:
param1
in the SDK and confirm they are not being misusedThe text was updated successfully, but these errors were encountered: