Skip to content

Commit e637e3f

Browse files
committed
add factory.sol
1 parent 746d6d5 commit e637e3f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/factory.sol

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
pragma solidity ^0.4.18;
2+
3+
import "./token.sol";
4+
5+
contract DSTokenFactory {
6+
event LogMake(address indexed owner, address token);
7+
8+
function make(
9+
bytes32 symbol, bytes32 name
10+
) public returns (DSToken result) {
11+
result = new DSToken(symbol);
12+
result.setName(name);
13+
result.setOwner(msg.sender);
14+
LogMake(msg.sender, result);
15+
}
16+
}

0 commit comments

Comments
 (0)