Skip to content

Commit

Permalink
cmd/evm: Add t8n server
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed May 8, 2024
1 parent 1a79f8f commit cfd7e06
Show file tree
Hide file tree
Showing 6 changed files with 285 additions and 111 deletions.
9 changes: 9 additions & 0 deletions cmd/evm/internal/t8ntool/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,13 @@ var (
Usage: "sets the verbosity level",
Value: 3,
}
PortFlag = &cli.IntFlag{
Name: "port",
Usage: "port to listen on",
Value: 0,
}
UnixSocketFlag = &cli.StringFlag{
Name: "unix-socket",
Usage: "File path to the unix socket to use",
}
)
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func Transaction(ctx *cli.Context) error {
return NewError(ErrorJson, fmt.Errorf("failed unmarshalling stdin: %v", err))
}
// Decode the body of already signed transactions
body = common.FromHex(inputData.TxRlp)
body = inputData.TxRlp
} else {
// Read input from file
inFile, err := os.Open(txStr)
Expand Down

0 comments on commit cfd7e06

Please sign in to comment.