ChorusOne / solido

Lido for Solana is a Lido-DAO governed liquid staking protocol for the Solana blockchain.
https://chorusone.github.io/solido/
GNU General Public License v3.0
101 stars 43 forks source link

Pass empty seeds when withdrawing #582

Closed enriquefynn closed 2 years ago

enriquefynn commented 2 years ago

process_withdraw was failing on recent tests, we passed a slice of one element before &[&[]] to invoke_signed, probably Solido was trying to call a signed instruction with the empty slice as a bump seed, in fact we should have passed an empty slice &[] so it just ignores it. invoke calls inkove_signed with an empty slice.