#[callback_vec]
argument includes other args with #[callback_unwrap]
#1320
Labels
#[callback_vec]
argument includes other args with #[callback_unwrap]
#1320
A sample contract method
near-sdk-rs/examples/adder/src/lib.rs
Lines 40 to 49 in 3bdbdd3
behaves very strange with respect to handling arguments: an argument annotated with
#[callback_vec]
comprises the values of previous arguments annotated with
#[callback_unwrap]
:near-sdk-rs/examples/adder/src/lib.rs
Lines 112 to 123 in 3bdbdd3
One would probably expect this argument to behave as a var-arg parameter with respect to
Promise
-s:=>
Possible changes/fixes:
#[callback_vec]
with#[callback_unwrap]
/#[callback_result]
on other arguments#[callback_vec]
more that once on all of the arguments#[callback_vec]
#[callback_vec]
more that once on all of the arguments#[callback_vec]
to be used after all of the#[callback_unwrap]
/#[callback_result]
-sThe text was updated successfully, but these errors were encountered: