From 9d23101c9a6b19c5ad2a50b308e39b4a369da4bc Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 22 Mar 2017 17:43:19 +0300 Subject: [PATCH] update for rv --- ethcore/src/builtin.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ethcore/src/builtin.rs b/ethcore/src/builtin.rs index a638d06d9..f65759f72 100644 --- a/ethcore/src/builtin.rs +++ b/ethcore/src/builtin.rs @@ -112,8 +112,7 @@ impl Builtin { /// Simple forwarder for execute. pub fn execute(&self, input: &[u8], output: &mut BytesRef) -> Result<(), Error> { - self.native.execute(input, output)?; - Ok(()) + self.native.execute(input, output) } /// Whether the builtin is activated at the given block number. @@ -354,6 +353,7 @@ fn read_point(reader: &mut io::Chain<&[u8], io::Repeat>) -> Result<::bn::G1, Err } impl Impl for Bn128AddImpl { + // Can fail if any of the 2 points does not belong the bn128 curve fn execute(&self, input: &[u8], output: &mut BytesRef) -> Result<(), Error> { use bn::AffineG1; @@ -374,6 +374,7 @@ impl Impl for Bn128AddImpl { } impl Impl for Bn128MulImpl { + // Can fail if first paramter (bn128 curve point) does not actually belong to the curve fn execute(&self, input: &[u8], output: &mut BytesRef) -> Result<(), Error> { use bn::AffineG1;