We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent addd882 commit 776df8aCopy full SHA for 776df8a
cmd/evm/internal/t8ntool/transition.go
@@ -142,7 +142,9 @@ func Main(ctx *cli.Context) error {
142
// Figure out the prestate alloc
143
if allocStr == stdinSelector || envStr == stdinSelector || txStr == stdinSelector {
144
decoder := json.NewDecoder(os.Stdin)
145
- decoder.Decode(inputData)
+ if err := decoder.Decode(inputData); err != nil {
146
+ return NewError(ErrorJson, fmt.Errorf("failed unmarshaling stdin: %v", err))
147
+ }
148
}
149
if allocStr != stdinSelector {
150
inFile, err := os.Open(allocStr)
0 commit comments