#1142: Fix solana transaction source address (#1182)

This commit is contained in:
walker-16 2024-03-07 11:21:26 -03:00 committed by GitHub
parent 2bec07b037
commit e7e191b8fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ func (a *apiSolana) fetchSolanaTx(
for i := range response.Transaction.Message.AccountKeys {
if response.Transaction.Message.AccountKeys[i].Signer {
txDetail.From = response.Transaction.Message.AccountKeys[i].Pubkey
// https://github.com/wormhole-foundation/wormhole-explorer/issues/1142
// we get the first signer as the origintx from.
break
}
}
if txDetail.From == "" {