I just deploy a super-easy-sc that performs the getAmountOut to any sc pair of maiar via proxy.
When I call the function, I get that the "sync execution request is not in the same shard" and its because I use the "execute_on_dest_context()".
Is there any way to perform a async_call() and return de value? I see the function ".with_callback()" but It seems that method didn't return value, just perform modifications in sc...
Any other option?
Try to create wallet in a shard where pool contract is. It is possible with erdjs or erdpy. After that deploy your sc with that wallet and now you can do sync calls with return values
Try to create wallet in a shard where pool contract is. It is possible with erdjs or erdpy. After that deploy your sc with that wallet and now you can do sync calls with return values