简体   繁体   中英

In Ride4dApps, how does the deposit and withdraw dApp(the example in Waves IDE) handle the delay issue?

Their seems to be a delay write key and transferring asset which means the deposit function could be manipulated what if someone deposits then immediately withdraws the money from the invoke account the dApp will still write a record with the amount specified?

在此处输入图片说明

ScriptResult(WriteSet(), TransferSet()) is a total inseparable result of transaction. All transactions are processed strictly one after another. So such problem will never happen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM