Skip to content
Open
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 fvm/src/executor/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ where
sender_state.sequence += 1;

// Ensure from actor has enough balance to cover the gas cost of the message.
let gas_cost: TokenAmount = msg.gas_fee_cap.clone() * msg.gas_limit;
let gas_cost: TokenAmount = &msg.gas_fee_cap * msg.gas_limit;
if sender_state.balance < gas_cost {
return Ok(Err(ApplyRet::prevalidation_fail(
ExitCode::SYS_SENDER_STATE_INVALID,
Expand Down
2 changes: 1 addition & 1 deletion fvm/src/kernel/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ where
.iter()
.collect();

if let Err(e) = std::fs::create_dir_all(dir.clone()) {
if let Err(e) = std::fs::create_dir_all(&dir) {
log::error!("failed to make directory to store debug artifacts {}", e);
} else if let Err(e) = std::fs::write(dir.join(name), data) {
log::error!("failed to store debug artifact {}", e)
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub fn compute_unsealed_sector_cid(
proof_type: RegisteredSealProof,
pieces: &[PieceInfo],
) -> SyscallResult<Cid> {
let pieces = to_vec(&pieces.to_vec()).expect("failed to marshal piece infos");
let pieces = to_vec(pieces).expect("failed to marshal piece infos");
let pieces = pieces.as_slice();
let mut out = [0u8; MAX_CID_LEN];
unsafe {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn build_response(send: fvm_shared::sys::out::send::Send) -> SyscallResult<fvm_s

Some(fvm_ipld_encoding::ipld_block::IpldBlock {
codec: send.return_codec,
data: bytes.to_vec(),
data: bytes,
})
};

Expand Down
Loading