diff --git a/rpc/handlers.go b/rpc/handlers.go index dbd55acc96..10d1eb8da1 100644 --- a/rpc/handlers.go +++ b/rpc/handlers.go @@ -1213,7 +1213,7 @@ func (h *Handler) Call(call FunctionCall, id BlockID) ([]*felt.Felt, *jsonrpc.Er call.Calldata, blockNumber, header.Timestamp, state, h.network) if err != nil { if errors.Is(err, utils.ErrResourceBusy) { - return nil, ErrUnexpectedError.CloneWithData(err.Error()) + return nil, ErrInternal.CloneWithData(err.Error()) } return nil, makeContractError(err) }