Fix `puppet-master` example not working if `puppet::set_data` returns a non-unit type in the PDAs section (#103)

This commit is contained in:
LEVI_104 2024-12-25 04:04:23 +08:00 committed by GitHub
parent e860609602
commit ee712ea01b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ mod puppet_master {
puppet::cpi::set_data(
ctx.accounts.set_data_ctx().with_signer(&[&[bump][..]]),
data,
)
)?;
Ok(())
}
}