This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let s : &str = "world"; | |
| println! ("hello {:?}", s); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (module | |
| (import "" "f" (func $f (param $n i32) (result i32))) | |
| (func $_start (export "_start") (result i32) | |
| i32.const 0 | |
| call $f | |
| ) | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.11; | |
| contract Lottery2 { | |
| address public owner; | |
| bool public haveReceivedABid = false; | |
| uint256 public maxBid; | |
| address public maxBidder; | |
| constructor () public { | |
| owner = msg.sender; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.11; | |
| contract Lottery2 { | |
| address public owner; | |
| bool public haveReceivedABid = false; | |
| uint256 public maxBid; | |
| address public maxBidder; | |
| constructor () public { | |
| owner = msg.sender; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.11; | |
| contract Lottery2 { | |
| address public owner; | |
| bool public haveReceivedABid = false; | |
| uint256 public maxBid; | |
| address public maxBidder; | |
| constructor () public { | |
| owner = msg.sender; |