当前位置 : 主页 > 编程语言 > java >

solidity向合约内部转账

来源:互联网 收集:自由互联 发布时间:2022-06-23
pragma solidity ^0.4.24; contract Foo01{ address public owner; uint256 public a; address public caller; constructor() public payable{ owner=msg.sender; } function setValue(uint256 input) public{ a=input; caller=msg.sender; } }
pragma solidity ^0.4.24;

contract Foo01{

address public owner;
uint256 public a;
address public caller;


constructor() public payable{
owner=msg.sender;
}

function setValue(uint256 input) public{
a=input;
caller=msg.sender;
}


}


上一篇:Solidity 常用方法总结
下一篇:没有了
网友评论