Skip to content

Fix blank transition type #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/blank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ use bitcoin::OutPoint;
use bp::seals::txout::CloseMethod;
use rgb_core::bundle::NoDataError;
use rgb_core::schema::OwnedRightType;
use rgb_core::vm::embedded::constants::TRANSITION_TYPE_VALUE_TRANSFER;
use rgb_core::{
seal, NodeId, NodeOutpoint, OwnedRights, ParentOwnedRights, Transition, TransitionBundle,
TypedAssignments,
};

use crate::state::OutpointState;

pub const BLANK_TRANSITION_TYPE: u16 = 0x8000;

#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display, Error, From)]
#[display(doc_comments)]
pub enum Error {
Expand Down Expand Up @@ -75,7 +74,7 @@ impl BlankBundle for TransitionBundle {
owned_rights.insert(input.ty, new_assignments);
}
let transition = Transition::with(
BLANK_TRANSITION_TYPE,
TRANSITION_TYPE_VALUE_TRANSFER,
empty!(),
empty!(),
OwnedRights::from(owned_rights),
Expand Down