Upgrade to new version of substreams library & README
This commit is contained in:
@@ -28,5 +28,5 @@ fn verify_parameter(address: &String) -> Result<(), Error> {
|
||||
return Err(anyhow!("Contract address is not valid"));
|
||||
}
|
||||
|
||||
return Ok(());
|
||||
Ok(())
|
||||
}
|
||||
@@ -45,7 +45,7 @@ fn verify_filter_params(params: &TransactionFilterParams) -> Result<(), Vec<subs
|
||||
return Err(errors)
|
||||
}
|
||||
|
||||
return Ok(())
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn apply_filter(transaction: &TransactionTrace, filters: &TransactionFilterParams) -> bool {
|
||||
@@ -55,7 +55,7 @@ fn apply_filter(transaction: &TransactionTrace, filters: &TransactionFilterParam
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
true
|
||||
}
|
||||
|
||||
fn filter_by_parameter(parameter: &Option<String>, transaction_field: &Vec<u8>) -> bool {
|
||||
@@ -68,5 +68,5 @@ fn filter_by_parameter(parameter: &Option<String>, transaction_field: &Vec<u8>)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
false
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ pub fn is_address_valid(address: &String) -> bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user