fix: updated logs event filtering for examples with new syntax (#1861)
This commit is contained in:
parent
5ae0a848c7
commit
caa6f0aa19
|
@ -14,7 +14,7 @@ async fn main() -> Result<()> {
|
|||
|
||||
let erc20_transfer_filter = Filter::new()
|
||||
.from_block(last_block - 10000)
|
||||
.topic0(ValueOrArray::Value(H256::from(keccak256("Transfer(address,address,uint256)"))));
|
||||
.event("Transfer(address,address,uint256)");
|
||||
|
||||
let mut stream = client.get_logs_paginated(&erc20_transfer_filter, 10);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ async fn main() -> Result<()> {
|
|||
|
||||
let erc20_transfer_filter = Filter::new()
|
||||
.from_block(last_block - 25)
|
||||
.topic0(ValueOrArray::Value(H256::from(keccak256("Transfer(address,address,uint256)"))));
|
||||
.event("Transfer(address,address,uint256)");
|
||||
|
||||
let mut stream = client.subscribe_logs(&erc20_transfer_filter).await?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue