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:
parent
e860609602
commit
ee712ea01b
|
@ -271,7 +271,8 @@ mod puppet_master {
|
||||||
puppet::cpi::set_data(
|
puppet::cpi::set_data(
|
||||||
ctx.accounts.set_data_ctx().with_signer(&[&[bump][..]]),
|
ctx.accounts.set_data_ctx().with_signer(&[&[bump][..]]),
|
||||||
data,
|
data,
|
||||||
)
|
)?;
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue