Files
Solidities/src/common/Symbolable.sol
2022-11-08 17:43:45 +08:00

23 lines
459 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Symbolable {
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
}