mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-10 13:28:06 +00:00
72ca980198
* Initial setup with hardhat and typescript. * Add test for integer type. * Add test for unsigned integer type. * Add test for boolean type. * Add test for address type. * Add test for string type. * Setup building library with typescript. * Remove hardhat dependency from getStorageValue library function. * Move contracts to test and remove deploy script. * Add readme for running tests. Co-authored-by: nikugogoi <95nikass@gmail.com>
19 lines
357 B
Solidity
19 lines
357 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.7.0;
|
|
|
|
contract TestStrings {
|
|
string string1;
|
|
|
|
string string2;
|
|
|
|
// Set variable string1.
|
|
function setString1(string memory value) external {
|
|
string1 = value;
|
|
}
|
|
|
|
// Set variable string2.
|
|
function setString2(string memory value) external {
|
|
string2 = value;
|
|
}
|
|
}
|