mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-09 12:58:06 +00:00
a7ec3d8da8
* Add license & copyright declarations for add-watcher. * Add copyright declarations for cache. * Add copyright declarations for erc20-watcher. * Add copyright declarations for ipld-eth-client. * Add copyright declarations for tracing-client. * Add copyright declarations for uni-watcher. * Add copyright declarations for solidity-mapper. * Add copyright declarations for uni-info-watcher. * Add copyright declarations for util. * Add copyright declarations for lighthouse-watcher. * Change license identifier in .sol files. Co-authored-by: prathamesh0 <prathamesh.musale0@gmail.com>
21 lines
509 B
Solidity
21 lines
509 B
Solidity
// SPDX-License-Identifier: AGPL-3.0
|
|
pragma solidity ^0.7.0;
|
|
|
|
contract TestAddress {
|
|
// Address type need 20 bytes for storage.
|
|
address address1;
|
|
|
|
// Address type uses the next slot as there is not enough space in previous slot.
|
|
address payable address2;
|
|
|
|
// Set variable address1.
|
|
function setAddress1(address value) external {
|
|
address1 = value;
|
|
}
|
|
|
|
// Set variable address2.
|
|
function setAddress2(address payable value) external {
|
|
address2 = value;
|
|
}
|
|
}
|