... id: UID
}
/// This type is the witness resource and is intended to be used only once.
struct PEACE has drop {}
/// The first argument of this function is an actual instance of the
/// type T with `drop` ability. It is dropped as soon as rece...
...(https://www.youtube.com/watch?v=jde9VEY8bbM)(2m36s)
* [Part II | Phase 0 and the Beacon Chain](https://www.youtube.com/watch?v=-qwSAFcicg8)(2m41s)
Gitcoin进行了直播,邀请Vitalik和其他嘉宾讨论了以rollup为中心的路线图,然后将其划分为较短的视频。此处是[视...
...c {
partner = _partner;
}
// withdraw 1% to recipient and 1% to owner
function withdraw() public {
uint amountToSend = address(this).balance / 100;
// perform a call without checking return
// The recipient can revert, the owner will still get the...
...;
let caller = tx_context::sender(ctx);
// get the input value and assert
let input_value = coin::value(&input);
let output_value = amount * 1000 / 2000; // amount千万不要写成input_value!
assert!(input_value >= amount, EInputNotEnough);
// transection the input ...