From 4748a2efea36a70e3edab21ecf44b11a4c2e9d56 Mon Sep 17 00:00:00 2001 From: KaoImin Date: Mon, 18 Dec 2023 22:44:08 +0800 Subject: [PATCH] update call ckb vm --- core/executor/src/precompiles/call_ckb_vm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/executor/src/precompiles/call_ckb_vm.rs b/core/executor/src/precompiles/call_ckb_vm.rs index eb5f2469a..3574b9065 100644 --- a/core/executor/src/precompiles/call_ckb_vm.rs +++ b/core/executor/src/precompiles/call_ckb_vm.rs @@ -55,11 +55,11 @@ impl PrecompileContract for CallCkbVM { fn parse_input(input: &[u8]) -> Result<(CellDep, Vec), PrecompileFailure> { let payload = - ::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(), )) }