-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction fixes and Client API (atop new quoting) #2522
Transaction fixes and Client API (atop new quoting) #2522
Conversation
autonomi/src/client/quote.rs
Outdated
let mut rate_limiter = RateLimiter::new(); | ||
|
||
for (content_addr, raw_quotes) in raw_quotes_per_addr { | ||
// FIXME: find better way to deal with paid content addrs and feedback to the user |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
let metrics: Vec<_> = metrics.into_iter().map(|v| v.into()).collect(); | ||
let mut amounts = self.contract.getQuote(metrics.clone()).call().await?.prices; | ||
|
||
// FIXME: temporary logic until the smart contract gets updated |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
let payment_verification_results = payment_vault.verify_payment(payment_verifications).await?; | ||
|
||
for payment_verification_result in payment_verification_results { | ||
// TODO we currently fail on a single invalid payment, maybe we should deal with this in a different way |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
6a4753f
to
51a513f
Compare
88a5e27
to
e4270aa
Compare
bc84302
to
343a22d
Compare
MERGE AFTER the QUOTING WORK #2519
This PR is based on top of and replaces #2518