Compare commits

...

1 Commits

Author SHA1 Message Date
Zhang Zhuo
1cfcb8b464 try1 2023-08-02 23:50:30 +08:00
2 changed files with 8121 additions and 0 deletions

8108
prover/1_transfer.json Normal file

File diff suppressed because one or more lines are too long

View File

@@ -5,6 +5,7 @@ package core_test
import (
"encoding/json"
"flag"
"fmt"
"io"
"os"
"path/filepath"
@@ -25,6 +26,18 @@ var (
proofDumpPath = flag.String("dump", "/assets/proof_data", "the path proofs dump to")
)
func TestTraceJson(t *testing.T) {
as := assert.New(t)
f, err = os.Open("1_transfer.json")
as.NoError(err)
byt, err = io.ReadAll(f)
as.NoError(err)
trace := &types.BlockTrace{}
as.NoError(json.Unmarshal(byt, trace))
fmt.Printf("%v", trace.TxStorageTraces)
}
func TestFFI(t *testing.T) {
as := assert.New(t)