wormhole-foundation / wormhole-scaffolding

Starter apps with Wormhole integration
Other
49 stars 33 forks source link

solana: Hello Token, fix recipient address in Transfer With Payload data #23

Closed a5-pickle closed 1 year ago

a5-pickle commented 1 year ago

Objective

Currently the encoded address is a recipient token address (strictly an associated token account). If a relayer were to redeem a transfer for this recipient, he would need to know the owner of the recipient's token account. But there is no information about the owner. The owner of the associated token account should be the address encoded in the HelloTokenMessage::Hello payload. Then the associated token account can be derived using the encoded mint and encoded recipient.

Definition of Done