Skip to content

Commit

Permalink
fix: struct CellOutput in solidiy example (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
felicityin authored and KaoImin committed Aug 31, 2023
1 parent a5b2d43 commit e3cdf2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions core/executor/src/precompiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ use protocol::types::H160;

use crate::precompiles::{
blake2_f::Blake2F, call_ckb_vm::CallCkbVM, ec_add::EcAdd, ec_mul::EcMul, ec_pairing::EcPairing,
ecrecover::EcRecover, get_cell::GetCell, identity::Identity, modexp::ModExp,
ripemd160::Ripemd160, sha256::Sha256,
ecrecover::EcRecover, identity::Identity, modexp::ModExp, ripemd160::Ripemd160, sha256::Sha256,
};

#[macro_export]
Expand Down Expand Up @@ -95,8 +94,7 @@ const fn axon_precompile_address(addr: u8) -> H160 {

pub fn build_precompile_set() -> BTreeMap<H160, PrecompileFn> {
precompiles!(
EcRecover, Sha256, Ripemd160, Identity, ModExp, EcAdd, EcMul, EcPairing, Blake2F, GetCell,
CallCkbVM
EcRecover, Sha256, Ripemd160, Identity, ModExp, EcAdd, EcMul, EcPairing, Blake2F, CallCkbVM
)
}

Expand Down
6 changes: 3 additions & 3 deletions examples/solidity/Types.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ struct Cell {
}

struct CellOutput {
uint64 capacity;
Script lock;
Script type_;
uint64 capacity;
Script lock;
Script[] type_;
}

struct Script {
Expand Down

0 comments on commit e3cdf2f

Please sign in to comment.