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.6.1; | |
//2020/2/24 | |
contract uploadtexttoblockchain { | |
address author; | |
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text); | |
//address owner = msg.sender; | |
uint256 public articlenumber = 0; | |
function submittext (string memory nickname, string memory filename, string memory text) public { | |
author = 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.6.1; | |
//2020/2/24 | |
contract uploadtexttoblockchain { | |
address author; | |
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text); | |
//address owner = msg.sender; | |
uint256 public articlenumber = 0; | |
function submittext (string memory nickname, string memory filename, string memory text) public { | |
author = 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.6.1; | |
//2020/2/24 | |
contract uploadtexttoblockchain { | |
address author; | |
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text); | |
//address owner = msg.sender; | |
uint256 public articlenumber = 0; | |
function submittext (string memory nickname, string memory filename, string memory text) public { | |
author = 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.6.1; | |
//2020/2/24 | |
contract uploadtexttoblockchain { | |
address author; | |
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text); | |
//address owner = msg.sender; | |
uint256 public articlenumber = 0; | |
function submittext (string memory nickname, string memory filename, string memory text) public { | |
author = 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.6.1; | |
//2020/2/24 | |
contract uploadtexttoblockchain { | |
address author; | |
event recordmsg(uint256 articlenumber, address author, string nickname, string filename, string text); | |
//address owner = msg.sender; | |
uint256 public articlenumber = 0; | |
function submittext (string memory nickname, string memory filename, string memory text) public { | |
author = 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.6.0; | |
contract Helloworld { | |
string public sayhello; | |
constructor() public { | |
sayhello = "helloworld"; | |
} | |
function saysomething (string memory sth) public { |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.6.0; | |
contract hello { | |
int public _age; | |
string public _name; | |
constructor(int age,string memory name) public { | |
_age = age; |
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.5.0; | |
contract Token { | |
string public name = "PandaZeng"; | |
string public symbol = "PZ"; | |
uint256 public totalSupply; | |
uint8 public decimals = 0; | |
event Transfer( | |
address indexed _from, |
NewerOlder