diff --git a/contracts/plasma/PlasmaERC20.sol b/contracts/plasma/PlasmaERC20.sol index 6254173..f950ae3 100644 --- a/contracts/plasma/PlasmaERC20.sol +++ b/contracts/plasma/PlasmaERC20.sol @@ -24,6 +24,17 @@ contract PlasmaERC20 is ERC721Token, Owned { mapping(uint => uint8) NFTTypes; mapping(uint => uint) ERC20Balances; + + // TODO: this is only for the demo. Remove + function register() external { + // Give each new player 5 cards + for (int j = 0; j < 5; j++) { + uint256 tokenId = allTokens.length + 1; + _mint(msg.sender, tokenId); + } + } + + function depositERC20(uint8 _NFTType) public { uint rate = exchangeRate[_NFTType];