Topics does not support nil data

Golang version of geth works differently from curl.  It does not work: 
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock":"0x494E40", "toBlock":"0x494E40", "topics":[["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null],["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null]]}], "id":1}' https://ropsten.infura.io
This commit is contained in:
TanakaFairwayCorp 2019-01-11 19:07:59 +09:00 committed by GitHub
parent 2eb838ed97
commit 1219232a40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,7 +147,7 @@ type FilterQuery struct {
// {{}, {B}} matches any topic in first position, B in second position // {{}, {B}} matches any topic in first position, B in second position
// {{A}, {B}} matches topic A in first position, B in second position // {{A}, {B}} matches topic A in first position, B in second position
// {{A, B}, {C, D}} matches topic (A OR B) in first position, (C OR D) in second position // {{A, B}, {C, D}} matches topic (A OR B) in first position, (C OR D) in second position
Topics [][]common.Hash Topics [][]*common.Hash
} }
// LogFilterer provides access to contract log events using a one-off query or continuous // LogFilterer provides access to contract log events using a one-off query or continuous