Skip to content

Commit

Permalink
ci: unpatch geth (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f authored Oct 18, 2023
1 parent 523802c commit 4e6dec8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,10 @@ jobs:
sudo apt-get update
sudo apt-get install ethereum solc libyaml-dev
if: startsWith(matrix.os, 'Ubuntu')
- name: Patch Geth # https://github.com/ethereum/go-ethereum/pull/27360
run: |
git clone https://github.com/q9f/go-ethereum.git -b q9f/params/shanghai
pushd go-ethereum/
make geth
popd
- name: Run Geth
run: |
./go-ethereum/build/bin/geth --dev --http --ipcpath /tmp/geth.ipc &
geth --dev --http --ipcpath /tmp/geth.ipc &
disown &
- name: Gem Dependencies
run: |
git submodule update --init
Expand Down
6 changes: 3 additions & 3 deletions spec/eth/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
it "raises exception when nonce incorrect" do
expect {
geth_http.transfer(another_key.address, 69 * Unit::ETHER, legacy: true, nonce: 0)
}.to raise_error(IOError, "nonce too low")
}.to raise_error(IOError, /nonce too low: next nonce [0-9]+, tx nonce [0-9]+/)
end

it "funds account twice" do
Expand Down Expand Up @@ -178,7 +178,7 @@
it "raises exception when nonce incorrect" do
expect {
geth_http.deploy_and_wait(contract, nonce: 0)
}.to raise_error(IOError, "nonce too low")
}.to raise_error(IOError, /nonce too low: next nonce [0-9]+, tx nonce [0-9]+/)
end

it "deploys the contract twice" do
Expand Down Expand Up @@ -340,7 +340,7 @@
it "raises exception when nonce incorrect" do
expect {
geth_http.transact(contract, "set", 42, address: contract_address, nonce: 0)
}.to raise_error(IOError, "nonce too low")
}.to raise_error(IOError, /nonce too low: next nonce [0-9]+, tx nonce [0-9]+/)
end

it "transacts function twice" do
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/ethereum/tests
Submodule tests updated from 0ec53d to a33949

0 comments on commit 4e6dec8

Please sign in to comment.