public async Task HandleSend(WebWalletSendTokenAction action, IDispatcher dispatcher) { var result = await action.wallet.Sync(null); if (result == Lyra.Core.Blocks.APIResultCodes.Success) { var result2 = await action.wallet.Send(action.Amount, action.DstAddr, action.TokenName); if (result2.ResultCode == Lyra.Core.Blocks.APIResultCodes.Success) { } } dispatcher.Dispatch(new WebWalletResultAction(action.wallet, true, UIStage.Main)); }
public static WebWalletState SendTokenActionHandler(WebWalletState state, WebWalletSendTokenAction action) => state.With(new { IsLoading = true });