Skip to content

Commit

Permalink
Removed string parameters and arguments from constructor.
Browse files Browse the repository at this point in the history
(strings: support for assignment from string literal)
  • Loading branch information
mariaKt committed Oct 3, 2024
1 parent 90b7b4a commit 5a8a376
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/examples/tokens/SomeTokenModified.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ contract SomeToken {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);

constructor(string memory name_, string memory symbol_, uint256 init_supply) {
_name = name_;
_symbol = symbol_;
constructor(uint256 init_supply) {
_mint(msg.sender, init_supply);
}

Expand Down Expand Up @@ -132,7 +130,7 @@ contract SomeTokenTest {

// Create SomeToken
uint256 _init_supply = 1e18;
_someToken = new SomeToken("SomeToken", "STK", _init_supply);
_someToken = new SomeToken(_init_supply);

// Transfer 100 tokens from msg.sender to some random address
uint256 _value = 100;
Expand Down

0 comments on commit 5a8a376

Please sign in to comment.