Skip to content

Commit 6634bf3

Browse files
committed
chore: refactor remove stale codes (scroll-node #210)
1 parent 0ef1738 commit 6634bf3

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

assets/evm_proof

-147 KB
Binary file not shown.

assets/state_proof

-19.9 KB
Binary file not shown.

store/orm_test.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package store
33
import (
44
"context"
55
"encoding/json"
6-
"io/ioutil"
76
"os"
87
"testing"
98
"time"
@@ -172,14 +171,8 @@ func TestOrm_BlockResults(t *testing.T) {
172171
// check content
173172
assert.Equal(t, true, string(data1) == string(data2))
174173

175-
// Retrieve pre-generated proofs
176-
evmProof, err := ioutil.ReadFile("../assets/evm_proof")
177-
assert.NoError(t, err)
178-
stateProof, err := ioutil.ReadFile("../assets/state_proof")
179-
assert.NoError(t, err)
180-
181174
// Update proof by hash
182-
assert.NoError(t, ormTrace.UpdateProofByNumber(context.Background(), blockResult.BlockTrace.Number.ToInt().Uint64(), evmProof, stateProof, 1200))
175+
assert.NoError(t, ormTrace.UpdateProofByNumber(context.Background(), blockResult.BlockTrace.Number.ToInt().Uint64(), []byte{1}, []byte{2}, 1200))
183176

184177
// Update trace and check result.
185178
err = ormTrace.UpdateBlockStatus(blockResult.BlockTrace.Number.ToInt().Uint64(), orm.BlockVerified)

0 commit comments

Comments
 (0)