Solidity中uint转bytes方法如下:
pragma solidity ^0.4.2;
contract Test {
function toBytesNickJohnson(uint256 x) constant returns (bytes b) {
b = new bytes(32);
assembly { m...
建表语句:
create table if not exists api (
api varchar(500) not null ,
method varchar(50) not null default 'post',
primary key (api,method)
) engine=innodb default charset=utf8 ;
报...