Skip to content

Commit

Permalink
update call ckb vm
Browse files Browse the repository at this point in the history
  • Loading branch information
KaoImin committed Dec 18, 2023
1 parent 836f105 commit 4748a2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/executor/src/precompiles/call_ckb_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ impl PrecompileContract for CallCkbVM {

fn parse_input(input: &[u8]) -> Result<(CellDep, Vec<Bytes>), PrecompileFailure> {
let payload =
<CallCkbVmPayload as AbiDecode>::decode(input).map_err(|_| err!(_, "decode input"))?;
<(CallCkbVmPayload,) as AbiDecode>::decode(input).map_err(|_| err!(_, "decode input"))?;

Ok((
payload.cell,
payload.inputs.into_iter().map(|i| i.0).collect(),
payload.0.cell,
payload.0.inputs.into_iter().map(|i| i.0).collect(),
))
}

Expand Down

0 comments on commit 4748a2e

Please sign in to comment.