I saw a example for defining Token using ERC721:
pragma solidity ^0.4.17;
import "./ERC721/ERC721Token.sol";
/**
* @title Repository of ERC721 Deeds
* This contract contains the list of deeds registered by users.
* This is a demo to show how tokens (deeds) can be minted and added
* to the repository.
*/
contract DeedRepository is ERC721Token {
/**
* @dev Created a DeedRepository with a name and symbol
* @param _name string represents the name of the repository
* @param _symbol string represents the symbol of the repository
*/
function DeedRepository(string _name, string _symbol)
public ERC721Token(_name, _symbol) {}
....
I have two questions:
1. Is the function DeedRepository a constructor? This method of defining a constructor with the same name as the contract has been obsoleted, hasn't it?
2. why "ERC721Token(_name, _symbol)" is before the brace "{}"? Here "ERC721Token" is a function that has been defined in ERC721Token. I think the function should be in the braces, like:
function DeedRepository(string _name, string _symbol) public{
ERC721Token(_name, _symbol)
}
shouldn't it?