You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 because scriptData, when used with contracts, represents the entire contract call script.
Therefore we need to:
Fix the transaction summary to properly display contract call info
Add more test cases for contract calls in the transaction summary
Check all references to param1 in the SDK and confirm they are not being misused
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: