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
VersionedTransaction derives Serialize and Deserialize but if you serialize a VersionedTransaction with serde_json you get an invalid type error. It doesn't like the VersionedMessage prefix byte.
{"signatures":[[1],[81,11,111,219,227,8,246,195,126,135,61,240,153,123,123,163,172,30,44,47,177,169,228,91,161,126,153,204,7,146,58,70,31,95,169,2,208,23,168,187,232,205,75,197,140,136,193,128,242,172,125,208,192,40,202,248,93,160,213,225,110,127,4,2]],"message":[128,{"header":{"numRequiredSignatures":1,"numReadonlySignedAccounts":0,"numReadonlyUnsignedAccounts":0},"accountKeys":[[1],[77,67,46,87,158,68,52,31,4,228,136,122,235,120,232,191,217,67,250,135,229,183,52,187,28,187,32,143,187,181,22,3]],"recentBlockhash":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"instructions":[[0]],"addressTableLookups":[[0]]}]}
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("invalid type: integer `128`, expected message prefix byte", line: 1, column: 267)', src/main.rs:15:63
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
VersionedTransaction
derivesSerialize
andDeserialize
but if you serialize a VersionedTransaction with serde_json you get aninvalid type
error. It doesn't like the VersionedMessage prefix byte.Dependencies for this example:
Output:
The text was updated successfully, but these errors were encountered: