Emurgo / csl-mobile-bridge

React-native bindings for Emurgo's cardano-serialization-lib (Cardano haskell Shelley)
MIT License
23 stars 12 forks source link

Always return same value in hex while converting pointer to hex. #88

Closed munishantier closed 1 year ago

munishantier commented 1 year ago

After build transaction, set witnesses. I added this code, but it always return same hex

const transaction = await Transaction.new( txBody, witnesses, undefined // transaction metadata ); console.log("-------transaction", transaction);

const transactionHash = Buffer.from(
  await transaction.to_bytes(),
  "utf8"
).toString("hex");

result key : 84a400800180021a0007a120030aa10081825820aac6f71be249b3aa2fb1f4a354d7a2673186422e0abf3924689d7f7dd97ddaf75840d248976b04d4a0cd836a16476e56677fa7549ff0bcb6300a0a05df690ede20076af7ffef433be35b3e09d6935bdfdec1c2c58b3d5bf00081501a3c8c30b9940ef5f6

lisicky commented 1 year ago

Hi @munishantier ! Your code doesn't reproduce the error. Could you provide more information? How do you modify tx between you getting tx bytes?