Skip to content

Commit

Permalink
feat: publishing updated ver
Browse files Browse the repository at this point in the history
  • Loading branch information
HinsonSIDAN committed Mar 16, 2024
1 parent f6e24c3 commit 9cb26ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sidan-csl-rs"
version = "0.2.0"
edition = "2024"
edition = "2021"
license = "MIT"
description = "Wrapper around the cardano-serialization-lib for easier transaction building, heavily inspired by cardano-cli APIs"

Expand Down
6 changes: 3 additions & 3 deletions src/builder/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::{

pub struct MeshTxBuilderCore {
pub mesh_csl: MeshCSL,
pub tx_inputs_builder: csl::tx_builder::tx_inputs_builder::TxInputsBuilder,
pub mesh_tx_builder_body: MeshTxBuilderBody,

tx_in_item: Option<TxIn>,
Expand All @@ -22,7 +21,6 @@ impl MeshTxBuilderCore {
pub fn new() -> Self {
Self {
mesh_csl: MeshCSL::new(),
tx_inputs_builder: csl::tx_builder::tx_inputs_builder::TxInputsBuilder::new(),
mesh_tx_builder_body: MeshTxBuilderBody {
inputs: vec![],
outputs: vec![],
Expand Down Expand Up @@ -570,7 +568,9 @@ impl MeshTxBuilderCore {
TxIn::ScriptTxIn(script_tx_in) => self.mesh_csl.add_script_tx_in(script_tx_in),
};
}
self.mesh_csl.tx_builder.set_inputs(&self.tx_inputs_builder);
self.mesh_csl
.tx_builder
.set_inputs(&self.mesh_csl.tx_inputs_builder);
}

fn add_all_outputs(&mut self, outputs: Vec<Output>) {
Expand Down

0 comments on commit 9cb26ce

Please sign in to comment.