Skip to content

Commit

Permalink
Merging develop
Browse files Browse the repository at this point in the history
  • Loading branch information
djpolygon committed Oct 2, 2024
2 parents 78a7463 + 749ceb8 commit 53bc5b3
Show file tree
Hide file tree
Showing 70 changed files with 4,665 additions and 1,550 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
matrix:
go-version: [ 1.22.x ]
goarch: [ "amd64" ]
e2e-group: [ "elderberry-validium", "elderberry-rollup" ]
e2e-group:
- "fork9-validium"
- "fork9-rollup"
- "fork12-validium"
- "fork12-rollup"
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -35,7 +39,7 @@ jobs:
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli=0.90.1
sudo apt install kurtosis-cli=1.3.0
kurtosis version
- name: Disable kurtosis analytics
Expand Down Expand Up @@ -66,6 +70,7 @@ jobs:
with:
repository: 0xPolygon/kurtosis-cdk
path: "kurtosis-cdk"
ref: "v0.2.11"

- name: Setup Bats and bats libs
uses: bats-core/[email protected]
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test-resequence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
# Disable test for the moment as it takes too long
- "this-test-is-disabled"
- "test_disabled"


concurrency:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: 0xPolygon/kurtosis-cdk
ref: 3debe0a4dd000e02f7e6bde3247432211bf0336f
ref: a7a80b7b5d98a69a23415ab0018e556257a6dfb6
path: kurtosis-cdk

- name: Install Kurtosis CDK tools
Expand Down Expand Up @@ -72,8 +72,11 @@ jobs:
- name: Configure Kurtosis CDK
working-directory: ./kurtosis-cdk
run: |
/usr/local/bin/yq -i '.args.cdk_erigon_node_image = "jerrycgh/cdk-erigon:d5d04906f723f3f1d8c43c9e6baf3e18c27ff348"' params.yml
/usr/local/bin/yq -i '.args.cdk_node_image = "cdk:local"' params.yml
/usr/local/bin/yq -i '.args.zkevm_rollup_fork_id = "12"' params.yml
/usr/local/bin/yq -i '.args.zkevm_prover_image = "hermeznetwork/zkevm-prover:v8.0.0-RC5-fork.12"' params.yml
/usr/local/bin/yq -i '.args.cdk_erigon_node_image = "jerrycgh/cdk-erigon:d5d04906f723f3f1d8c43c9e6baf3e18c27ff348"' params.yml
- name: Deploy Kurtosis CDK package
working-directory: ./kurtosis-cdk
Expand Down
3 changes: 1 addition & 2 deletions aggoracle/chaingersender/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ type EthTxManager interface {
Result(ctx context.Context, id common.Hash) (ethtxmanager.MonitoredTxResult, error)
Add(ctx context.Context,
to *common.Address,
forcedNonce *uint64,
value *big.Int,
data []byte,
gasOffset uint64,
Expand Down Expand Up @@ -103,7 +102,7 @@ func (c *EVMChainGERSender) UpdateGERWaitUntilMined(ctx context.Context, ger com
if err != nil {
return err
}
id, err := c.ethTxMan.Add(ctx, &c.gerAddr, nil, big.NewInt(0), data, c.gasOffset, nil)
id, err := c.ethTxMan.Add(ctx, &c.gerAddr, big.NewInt(0), data, c.gasOffset, nil)
if err != nil {
return err
}
Expand Down
10 changes: 2 additions & 8 deletions aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ func (a *Aggregator) settleDirect(
return false
}

monitoredTxID, err := a.ethTxManager.Add(ctx, to, nil, big.NewInt(0), data, a.cfg.GasOffset, nil)
monitoredTxID, err := a.ethTxManager.Add(ctx, to, big.NewInt(0), data, a.cfg.GasOffset, nil)
if err != nil {
a.logger.Errorf("Error Adding TX to ethTxManager: %v", err)
mTxLogger := ethtxmanager.CreateLogger(monitoredTxID, sender, to)
Expand Down Expand Up @@ -1875,13 +1875,7 @@ func (a *Aggregator) getWitness(batchNumber uint64, url string, fullWitness bool
return nil, err
}

witnessString := strings.TrimLeft(witness, "0x")
if len(witnessString)%2 != 0 {
witnessString = "0" + witnessString
}
bytes := common.Hex2Bytes(witnessString)

return bytes, nil
return common.FromHex(witness), nil
}

func printInputProver(logger *log.Logger, inputProver *prover.StatelessInputProver) {
Expand Down
Loading

0 comments on commit 53bc5b3

Please sign in to comment.