flow-go-sdk icon indicating copy to clipboard operation
flow-go-sdk copied to clipboard

Transactions ID calculation returns incorrect result for some transactions

Open sukantoraymond opened this issue 2 years ago • 0 comments

When creating a new account on testnet with faucet, https://github.com/onflow/flow-go-sdk/blob/9c4ab8f674b1ab405f50f73f2a09fefce3c0ae41/transaction.go#L124 returns the expected result for example of txID 36f7e28b3480f0b237523146fa322c92ea64382d7ad8dec9eee817bb1a891f31.

However, while working on feature of integrating Lilico's API for account creation with flow cli(https://github.com/Outblock/flow-account-api), we found that the same ID function returns the incorrect txID (example: fad0fce452ad47d2f05dbe02faf47bc09b57c729f550307724f322556689a9b0). Running this function with fad0fce452ad47d2f05dbe02faf47bc09b57c729f550307724f322556689a9b0 somehow results in f49663ffc1d7db6373bceebbc69ed119f3ddd9762927375a6b0c6180ec0cc22e instead of the same value.

sukantoraymond avatar Aug 17 '22 21:08 sukantoraymond