Skip to content

Commit

Permalink
Meh
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Jul 12, 2024
1 parent 1d3cab6 commit 928fe9f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/types/encoding/eip712_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package encoding_test
import (
"bytes"
"encoding/hex"
"encoding/json"
"fmt"
"os"
"os/exec"
Expand Down Expand Up @@ -55,16 +54,10 @@ func TestEIP712Arrays(t *testing.T) {
}
txn.Header.Initiator = [32]byte(sig.Metadata().Hash())

b, err := json.Marshal(txn)
b, err := protocol.MarshalEip712(txn, sig)
require.NoError(t, err)
fmt.Printf("%s\n", b)

b, err = protocol.MarshalEip712(txn, sig)
require.NoError(t, err)
buf := new(bytes.Buffer)
require.NoError(t, json.Indent(buf, b, "", " "))
fmt.Println(buf.String())

cmd := exec.Command("../../../test/cmd/eth_signTypedData/execute.sh", hex.EncodeToString(priv.Serialize()), string(b))
cmd.Stderr = os.Stderr
out, err := cmd.Output()
Expand Down

0 comments on commit 928fe9f

Please sign in to comment.