@alp257 Hello, hope your well,
I did what you suggested, Im using ā0.8.0ā compiler , and ā0.4.15ā truffle, Im getting the same error on updated version. But for the meantime its set to this. If you want me to change it let me know. So now the errors are
jflor@DESKTOP-VSIL3IC MINGW64 /d/jflor/Documents/ERC1155GameToken
$ git --version
git version 2.31.1.windows.1
jflor@DESKTOP-VSIL3IC MINGW64 /d/jflor/Documents/ERC1155GameToken
$ truffle test
Using network 'test'.
Compiling your contracts...
===========================
> Compiling .\Lib\Address.sol
> Compiling .\Lib\ERC1155.sol
> Compiling .\Lib\ERC1155Mintable.sol
> Compiling .\Lib\ERC165.sol
> Compiling .\Lib\IERC1155.sol
> Compiling .\Lib\IERC1155TokenReceiver.sol
> Compiling .\Lib\SafeMath.sol
> Compiling .\contracts\Migrations.sol
> Compiling .\contracts\Token.sol
> Compiling .\contracts\marketplace.sol
> Compilation warnings encountered:
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/Lib/Address.sol
,Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/Lib/ERC1155.sol
,Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/Lib/ERC1155Mintable.sol
,Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/Lib/ERC165.sol
,Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/Lib/IERC1155.sol
,Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/Lib/IERC1155TokenReceiver.sol
,Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/Lib/SafeMath.sol
,Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/contracts/marketplace.sol
TypeError: Derived contract must override function "supportsInterface". Two or more base classes define function with same name and parameter types.
--> project:/contracts/Token.sol:8:1:
|
8 | contract GameToken is ERC1155, ERC1155Mintable{
| ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "ERC1155":
--> project:/Lib/ERC1155.sol:40:5:
|
40 | function supportsInterface(bytes4 _interfaceId)
| ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "ERC1155Mintable":
--> project:/Lib/ERC1155Mintable.sol:27:5:
|
27 | function supportsInterface(bytes4 _interfaceId)
| ^ (Relevant source part starts here and spans across multiple lines).
,TypeError: Member "isContract" not found or not visible after argument-dependent lookup in address.
--> project:/Lib/ERC1155Mintable.sol:69:17:
|
69 | if (to.isContract()) {
| ^^^^^^^^^^^^^
Compilation failed. See above.
Truffle v5.4.18 (core: 5.4.18)
Node v16.13.0
$ truffle version
Truffle v5.4.18 (core: 5.4.18)
Solidity - 0.8.9 (solc-js)
Node v16.13.0
Web3.js v1.5.3
package.json
{
"name": "erc-1155",
"version": "1.0.0",
"description": "ERC-1155 Reference Implementation",
"main": "truffle-config.js",
"directories": {
"test": "test"
},
"dependencies": {
"@truffle/hdwallet-provider": "^2.0.0",
"bignumber.js": "^4.1.0",
"solc": "^0.4.15"
},
"devDependencies": {
"truffle": "^5.4.24"
},
"scripts": {
"test": "truffle test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/enjin/erc-1155.git"
},
"keywords": [
"enjin",
"coin",
"ethereum"
],
"author": "Enjin PTE LTD",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/enjin/erc-1155/issues"
},
"homepage": "https://github.com/enjin/erc-1155#readme"
}