mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
735d44ba32
* check receipt status for failed txs from evm * make EvmSigner's Auth public * setup evm state initialization for e2e * add a dummy Greeter contract, deployed on start * move WaitForEvmTxReceipt to from account to util * add tests for interacting with the contract * add ContractAddrs map to Chain
19 lines
371 B
Solidity
19 lines
371 B
Solidity
//SPDX-License-Identifier: Unlicense
|
|
pragma solidity ^0.8.3;
|
|
|
|
contract Greeter {
|
|
string greeting;
|
|
|
|
constructor(string memory _greeting) {
|
|
greeting = _greeting;
|
|
}
|
|
|
|
function greet() public view returns (string memory) {
|
|
return greeting;
|
|
}
|
|
|
|
function setGreeting(string memory _greeting) public {
|
|
greeting = _greeting;
|
|
}
|
|
}
|