Skip to content

Commit

Permalink
Reverting new leaf schema events for burn, redeem, and decompress (#1123
Browse files Browse the repository at this point in the history
)
  • Loading branch information
danenbm authored Jun 21, 2023
1 parent dfa3733 commit 94cb52c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions bubblegum/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1322,11 +1322,6 @@ pub mod bubblegum {
creator_hash,
);

wrap_application_data_v1(
previous_leaf.to_event().try_to_vec()?,
&ctx.accounts.log_wrapper,
)?;

let new_leaf = Node::default();

replace_leaf(
Expand Down Expand Up @@ -1359,11 +1354,6 @@ pub mod bubblegum {
let previous_leaf =
LeafSchema::new_v0(asset_id, owner, delegate, nonce, data_hash, creator_hash);

wrap_application_data_v1(
previous_leaf.to_event().try_to_vec()?,
&ctx.accounts.log_wrapper,
)?;

let new_leaf = Node::default();

replace_leaf(
Expand Down Expand Up @@ -1437,12 +1427,6 @@ pub mod bubblegum {
}

let voucher = &ctx.accounts.voucher;

wrap_application_data_v1(
voucher.leaf_schema.to_event().try_to_vec()?,
&ctx.accounts.log_wrapper,
)?;

match metadata.token_program_version {
TokenProgramVersion::Original => {
if ctx.accounts.mint.data_is_empty() {
Expand Down

0 comments on commit 94cb52c

Please sign in to comment.