From ee712ea01b3bd37ad526bd343e4c29b104807d63 Mon Sep 17 00:00:00 2001 From: LEVI_104 <108803001+chen4903@users.noreply.github.com> Date: Wed, 25 Dec 2024 04:04:23 +0800 Subject: [PATCH] Fix `puppet-master` example not working if `puppet::set_data` returns a non-unit type in the PDAs section (#103) --- src/anchor_in_depth/PDAs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/anchor_in_depth/PDAs.md b/src/anchor_in_depth/PDAs.md index 1eaf959..d19efbc 100644 --- a/src/anchor_in_depth/PDAs.md +++ b/src/anchor_in_depth/PDAs.md @@ -271,7 +271,8 @@ mod puppet_master { puppet::cpi::set_data( ctx.accounts.set_data_ctx().with_signer(&[&[bump][..]]), data, - ) + )?; + Ok(()) } }