Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Jul 15, 2023
1 parent 6581bf8 commit 0ad5c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 1 addition & 8 deletions crates/interpreter/src/instructions/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ use core::ops::Index;
use crate::{gas, interpreter::Interpreter, primitives::U256, Host, InstructionResult};
use core::cmp::max;

use revm_primitives::SpecId::CANCUN;

use crate::{
gas,
interpreter::Interpreter,
primitives::{Spec, U256},
Host, InstructionResult,
};
use revm_primitives::{SpecId::CANCUN, Spec};


pub fn mload(interpreter: &mut Interpreter, _host: &mut dyn Host) {
Expand Down
4 changes: 3 additions & 1 deletion crates/precompile/src/point_evaluation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use core::str::FromStr;

use alloc::vec::Vec;
use num::{BigUint, FromPrimitive};
use revm_primitives::{PrecompileResult, StandardPrecompileFn};
use revm_primitives::{PrecompileResult, StandardPrecompileFn, uint};
use sha2::{Digest, Sha256};

use crate::{Precompile, PrecompileAddress};
Expand All @@ -14,6 +14,8 @@ pub const POINT_EVALUATION_PRECOMPILE: PrecompileAddress = PrecompileAddress(

const FIELD_ELEMENTS_PER_BLOB: u32 = 4096;
// Modulus is 381 bits which is greater than 256 bits so need to find better type
// const BLS_MODULUS: uint<> =
// "52435875175126190479447740508185965837690552500527637822603658699938581184513";
const BLS_MODULUS: &str =
"52435875175126190479447740508185965837690552500527637822603658699938581184513";
const BLOB_COMMITMENT_VERSION_KZG: u8 = 0x01;
Expand Down

0 comments on commit 0ad5c0c

Please sign in to comment.