This file contains 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.5.16; | |
contract owned{ | |
address payable owner; | |
constructor() public{ | |
owner = msg.sender; | |
} | |
modifier onlyOwner{ | |
require(msg.sender == owner,"only the contract owner can call this function"); | |
_; |
This file contains 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.5.16; | |
contract Counter{ | |
uint private count = 10; | |
uint public showc; | |
function inc(uint num) public returns(uint){ | |
return count += num; | |
} | |
function getCount() public returns(uint){ | |
showc = count; | |
return showc; |
This file contains 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
import com.alibaba.fastjson.JSONObject; | |
import org.apache.dubbo.common.io.Bytes; | |
import org.apache.dubbo.common.serialize.hessian2.Hessian2ObjectOutput; | |
import sun.misc.Unsafe; | |
import sun.print.UnixPrintServiceLookup; | |
import java.io.*; | |
import java.lang.reflect.Field; | |
import java.net.Socket; | |
import java.util.HashMap; | |
import java.util.Random; |