Skip to content

Commit

Permalink
feat: enable get header precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
blckngm committed Dec 21, 2023
1 parent f68e365 commit 0dadaf2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/executor/src/precompiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ use protocol::types::H160;

use crate::precompiles::{
blake2_f::Blake2F, call_ckb_vm::CallCkbVM, ckb_blake2b::CkbBlake2b, ckb_mbt_verify::CMBTVerify,
ec_add::EcAdd, ec_mul::EcMul, ec_pairing::EcPairing, ecrecover::EcRecover, identity::Identity,
modexp::ModExp, ripemd160::Ripemd160, sha256::Sha256,
ec_add::EcAdd, ec_mul::EcMul, ec_pairing::EcPairing, ecrecover::EcRecover,
get_header::GetHeader, identity::Identity, modexp::ModExp, ripemd160::Ripemd160,
sha256::Sha256,
};

#[macro_export]
Expand Down Expand Up @@ -96,7 +97,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,
CallCkbVM, CkbBlake2b, CMBTVerify
CallCkbVM, CkbBlake2b, CMBTVerify, GetHeader
)
}

Expand Down

0 comments on commit 0dadaf2

Please sign in to comment.