Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Mar 15, 2024
1 parent 8c28f94 commit 40a2f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions go/enclave/rpc/GetTransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ func GetTransactionExecute(builder *CallBuilder[gethcommon.Hash, RpcTransaction]
signer := types.NewLondonSigner(tx.ChainId())
rpcTx := newRPCTransaction(tx, blockHash, blockNumber, index, rpc.config.BaseFee, signer)
builder.ReturnValue = rpcTx
//todo
rpcTx.Input = []byte{}
return nil
}

Expand Down
5 changes: 2 additions & 3 deletions lib/gethfork/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,9 @@ func (c *Client) drainRead() {
func (c *Client) read(codec ServerCodec) {
for {
msgs, batch, err := codec.readBatch()
var syntaxError *json.SyntaxError
if errors.As(err, &syntaxError) {
if _, ok := err.(*json.SyntaxError); ok {
msg := errorMessage(&parseError{err.Error()})
codec.writeJSON(context.Background(), msg, true) //nolint:errcheck
codec.writeJSON(context.Background(), msg, true)
}
if err != nil {
c.readErr <- err
Expand Down

0 comments on commit 40a2f28

Please sign in to comment.