Skip to content

Conversation

@thibault-martinez
Copy link
Member

Otherwise it doesn't serialise the type byte and the result is different from what from_bcs and from_base64 are expecting, making round trips erroneous.

I have tested it with the dry_run_bytes example which were producing
AAIAIAAApJhL1JXUNG+iCN3/T11eWtSMId7GMd3ryZgJ8WkAAAgA8gUqAQAAAAICAAEBAQABAQIAAAEAAGEYMNNkGmj5SmkNzCXR9LDayUgyWsGPbdMlZDcXNfMsAgsCcO6dJ9oNsJZR5fczjfoyx+5kQczvofbjBXNbz8erczoyHAAAAAAgqUjvvTgfDEQpwAlQNq9jEW4mC+mwXBCS2prf+2sQjifQQHf+O2+tE7PU7Q1TW3ypKvysjw8qDgkl+59PCzDGmXI6MhwAAAAAIHCjhEicUeSyUMVTOcSW1jD849wfgQWjT8C3uQwtmmhwYRgw02QaaPlKaQ3MJdH0sNrJSDJawY9t0yVkNxc18yzoAwAAAAAAAKAtLQAAAAAAAA==
instead of
AAACACAAAKSYS9SV1DRvogjd/09dXlrUjCHexjHd68mYCfFpAAAIAPIFKgEAAAACAgABAQEAAQECAAABAABhGDDTZBpo+UppDcwl0fSw2slIMlrBj23TJWQ3FzXzLAILAnDunSfaDbCWUeX3M436MsfuZEHM76H24wVzW8/Hq3M6MhwAAAAAIKlI7704HwxEKcAJUDavYxFuJgvpsFwQktqa3/trEI4n0EB3/jtvrROz1O0NU1t8qSr8rI8PKg4JJfufTwswxplyOjIcAAAAACBwo4RInFHkslDFUznEltYw/OPcH4EFo0/At7kMLZpocGEYMNNkGmj5SmkNzCXR9LDayUgyWsGPbdMlZDcXNfMs6AMAAAAAAACgLS0AAAAAAAA=
without this fix.

@thibault-martinez thibault-martinez changed the title fix(FFI): do not use as_v1 for Transaction::{to_bcs, to_base64} fix(ffi): do not use as_v1 for Transaction::{to_bcs, to_base64} Oct 17, 2025
@thibault-martinez thibault-martinez merged commit b79e956 into sdk-bindings Oct 20, 2025
15 checks passed
@thibault-martinez thibault-martinez deleted the fix/do-not-use-v1-for-bcs-base64 branch October 20, 2025 07:07
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.

5 participants