Skip to content

Commit 91b41d2

Browse files
authored
feat: update go-corset to version 1.1.23 (#784)
1 parent 4071e96 commit 91b41d2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Install Go Corset
1717
shell: bash
18-
run: go install github.com/consensys/go-corset/cmd/go-corset@5b76fc01d8ea4e8f78e5e1991665cb2036c8ea6e # v1.1.22
18+
run: go install github.com/consensys/go-corset/cmd/go-corset@93c23f239542f79c1db60eb5b8250ab20e30f046 # v1.1.23
1919

2020
- name: Build all forks
2121
run: make -B all

alu/add/add.zkasm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include "../../constants/evm.zkasm"
88
;; SUB (ARG_1 - ARG_2) % 2^256 0x03
99
;;
1010
;; Both of these operate on u256 words with "wrap around" semantics.
11-
fn add(INST=1 u8, ARG_1 u256, ARG_2 u256) -> (RES u256) {
11+
pub fn add(INST=1 u8, ARG_1 u256, ARG_2 u256) -> (RES u256) {
1212
var c u1
1313
;;
1414
if INST == EVM_INST_ADD goto insn_add

exp/exp.zkasm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const EXP_INST_MODEXPLOG = 0xEE05
2020
;; The interpretation of the argument ARG depends upon the
2121
;; instruction, whilst CDS and EBS are only used for the MODEXPLOG
2222
;; case.
23-
fn exp(INST=0xEE0A u16, ARG u256, CDS u6, EBS u6) -> (RES=0 u128)
23+
pub fn exp(INST=0xEE0A u16, ARG u256, CDS u6, EBS u6) -> (RES=0 u128)
2424
;; PRE: 1<=CDS<=32 && 1<=EBS<=32
2525
{
2626
var s, b u1

gas/gas.zkasm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
;; "Out Of Gas Exception". When OOGX==1, it means the corresponding
55
;; instruction generated an out-of-gas exception (rather than some
66
;; other exception kind).
7-
fn gas(GAS_COST u64, GAS_ACTUAL u64, XAHOY u1, OOGX u1) {
7+
pub fn gas(GAS_COST u64, GAS_ACTUAL u64, XAHOY u1, OOGX u1) {
88
var tmp u64
99
var b u1
1010
;;

shf/shf.zkasm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include "../util/bit_sar.zkasm"
1414
;; Observe that when ARG_1 >= 256, the result is always 0 for SHL and
1515
;; SHR. For SAR, the result in this case is 0 (when sign bit unset)
1616
;; and -1 (when sign bit set).
17-
fn shf(INST=0x1b u8, ARG_1 u256, ARG_2 u256) -> (RES u256) {
17+
pub fn shf(INST=0x1b u8, ARG_1 u256, ARG_2 u256) -> (RES u256) {
1818
var tmp u248
1919
var n u8
2020
;; split shift

stp/stp.zkasm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ include "../constants/evm.zkasm"
2222
;; Finally, EXISTS indicates for a CALL instruction whether target
2323
;; account exists already, and WARM indicates whether the target
2424
;; account for a call instruction is warm (or not).
25-
fn stp(INST=0xf0 u8, GAS_ACTUAL u64, GAS_MXP u64, GAS u256, VALUE u256, EXISTS u1, WARM u1) -> (OOGX=1 u1, GAS_UPFRONT=32000 u64, GAS_OOP u64, GAS_STIPEND u64)
25+
pub fn stp(INST=0xf0 u8, GAS_ACTUAL u64, GAS_MXP u64, GAS u256, VALUE u256, EXISTS u1, WARM u1) -> (OOGX=1 u1, GAS_UPFRONT=32000 u64, GAS_OOP u64, GAS_STIPEND u64)
2626
;; PRE: GAS_UPFRONT calculation does not overflow.
2727
{
2828
var L_gas_diff u64

0 commit comments

Comments
 (0)