-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The HTTP plugin is re-implemented in javy.
Ideally we should use the rust SDK's http plugin (as single source of truth).
The core discrepancy are here:
javy-bless-plugins/src/fetch/blockless.rs
Lines 80 to 89 in d2b6af5
if rs == u32::MAX { continue; } else if rs != 0 { return Err(HttpErrorKind::from(rs)); } else { match num.cmp(&0) { Ordering::Greater => vec.extend_from_slice(&buf[0..num as _]), _ => break, } } - https://github.com/blocklessnetwork/sdk-rust/blob/1d36eba1bed03175863c2153fc196c8ac148f753/src/http.rs#L94-L97
The fix needs to be ported to the rust-sdk; a new release needs to be made; and then the plugin should replace low level host calls with the rust sdk's ones.
Metadata
Metadata
Assignees
Labels
No labels