File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ pub extern "C" fn main() {
1717 let mut output = [ 0u8 ; 64 ] ;
1818 match ethereum_bn128:: bn128_add ( & input[ ..] , & mut BytesRef :: Fixed ( & mut output[ ..] ) ) {
1919 Ok ( _) => ewasm_api:: finish_data ( & output) ,
20- Err ( _) => panic ! ( ) ,
20+ Err ( _) => ewasm_api :: abort ( ) ,
2121 }
2222}
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ pub extern "C" fn main() {
1717 let mut output = [ 0u8 ; 64 ] ;
1818 match ethereum_bn128:: bn128_mul ( & input[ ..] , & mut BytesRef :: Fixed ( & mut output[ ..] ) ) {
1919 Ok ( _) => ewasm_api:: finish_data ( & output) ,
20- Err ( _) => panic ! ( ) ,
20+ Err ( _) => ewasm_api :: abort ( ) ,
2121 }
2222}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub extern "C" fn main() {
1212 // NOTE: this validation will also be done by bn128_pairing
1313
1414 if length % 192 != 0 {
15- panic ! ( ) ;
15+ ewasm_api :: abort ( ) ;
1616 }
1717
1818 // charge a base fee plus a word fee for every element
@@ -27,6 +27,6 @@ pub extern "C" fn main() {
2727 let mut output = [ 0u8 ; 32 ] ;
2828 match ethereum_bn128:: bn128_pairing ( & input[ ..] , & mut BytesRef :: Fixed ( & mut output[ ..] ) ) {
2929 Ok ( _) => ewasm_api:: finish_data ( & output) ,
30- Err ( _) => panic ! ( ) ,
30+ Err ( _) => ewasm_api :: abort ( ) ,
3131 }
3232}
You can’t perform that action at this time.
0 commit comments