Skip to content
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

Fixed 2 errors on dev #138

Merged
merged 1 commit into from
Oct 9, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion iota-client/src/extended/prepare_transfers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<'a> PrepareTransfersBuilder<'a> {

let timestamp = chrono::Utc::now().timestamp();

let mut bundle = OutgoingBundleBuilder::new();
let mut bundle = OutgoingBundleBuilder::default();
// add transfers
for transfer in self.transfers {
if let Some(message) = transfer.message {
Expand Down
2 changes: 1 addition & 1 deletion iota-client/src/extended/send_trytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'a> SendTrytesBuilder<'a> {
let mut trytes = Vec::new();
for tx in self.trytes {
let mut trits = TritBuf::<T1B1Buf>::zeros(8019);
tx.into_trits_allocated(trits.as_slice_mut());
tx.as_trits_allocated(trits.as_slice_mut());
trits.subslice_mut(7290..7533).copy_from(trunk.as_trits());
trits
.subslice_mut(7533..7776)
Expand Down