Skip to content

chain.call_cache will cache the data whose return_value='' is empty #3499

@yongjun925

Description

@yongjun925

Do you want to request a feature or report a bug?
bug

What is the current behavior?
chain.call_cache will cache the data whose return_value='' is empty, causing the subsequent returned data to be wrong

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
select count(*) from chain1.call_cache where return_value='';
{
"errors": [
{
"message": "indexing_error"
}
]
}

What is the expected behavior?
Don't cache empty data

chain/ethereum/src/ethereum_adapter.rs
if !for_cache.is_empty() {

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions