Skip to content

Commit

Permalink
Merge fdb6824 into 4562750
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Oct 9, 2020
2 parents 4562750 + fdb6824 commit 4ad2358
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ergo-lib/src/chain/data_input.rs
Expand Up @@ -2,7 +2,7 @@

use std::io;

use super::ergo_box::{box_id::BoxId, ErgoBox};
use super::ergo_box::box_id::BoxId;
use crate::serialization::{
sigma_byte_reader::SigmaByteRead, sigma_byte_writer::SigmaByteWrite, SerializationError,
SigmaSerializable,
Expand All @@ -24,9 +24,9 @@ pub struct DataInput {
pub box_id: BoxId,
}

impl From<&ErgoBox> for DataInput {
fn from(b: &ErgoBox) -> Self {
DataInput { box_id: b.box_id() }
impl From<BoxId> for DataInput {
fn from(box_id: BoxId) -> Self {
DataInput { box_id }
}
}

Expand Down

0 comments on commit 4ad2358

Please sign in to comment.