WASM Remove blockhash error (#7121)
* Remove blockhash error * Update tests.
This commit is contained in:
parent
68db425fe8
commit
359b4de3ff
@ -1 +1 @@
|
||||
Subproject commit e5fcae4e9c2a570f293a22baa4d78d9f4b391a0f
|
||||
Subproject commit d6185ea16eaba7ff685c069c2064819f9549c4d7
|
@ -115,7 +115,7 @@ pub const SIGNATURES: &'static [UserFunctionDescriptor] = &[
|
||||
Static(
|
||||
"_blockhash",
|
||||
&[I64, I32],
|
||||
Some(I32),
|
||||
None,
|
||||
),
|
||||
Static(
|
||||
"_coinbase",
|
||||
|
@ -665,7 +665,7 @@ impl<'a, 'b> Runtime<'a, 'b> {
|
||||
|
||||
self.memory.set(return_ptr, &*hash)?;
|
||||
|
||||
Ok(Some(0i32.into()))
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
fn return_address_ptr(&mut self, ptr: u32, val: Address) -> Result<(), InterpreterError>
|
||||
|
@ -765,7 +765,7 @@ fn externs() {
|
||||
"Gas limit requested and returned does not match"
|
||||
);
|
||||
|
||||
assert_eq!(gas_left, U256::from(94_733));
|
||||
assert_eq!(gas_left, U256::from(94_858));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user