I tried migrating to @colony/colony-js-contract-loader-network, but now i'm getting this error:
[0] Error: Cannot find module '../contracts/static/Authority.json'
[0] at Function.Module._resolveFilename (module.js:542:15)
[0] at Function.Module._load (module.js:472:25)
[0] at Module.require (module.js:585:17)
[0] at require (internal/module.js:11:18)
[0] at /Users/kelu/Colony/ColonyExplorer/metropolis/node_modules/@colony/colony-js-contract-loader-network/src/NetworkLoader.js:24:25
[0] at Array.forEach (<anonymous>)
[0] at Object.<anonymous> (/Users/kelu/Colony/ColonyExplorer/metropolis/node_modules/@colony/colony-js-contract-loader-network/src/NetworkLoader.js:23:18)
[0] at Module._compile (module.js:641:30)
[0] at Module._extensions..js (module.js:652:10)
[0] at Object.require.extensions.(anonymous function) [as .js] (/Users/kelu/Colony/ColonyExplorer/metropolis/node_modules/babel-register/lib/node.js:152:7)
I'm using these dependencies:
"@colony/colony-js-adapter-ethers": "^1.5.0",
"@colony/colony-js-client": "^1.5.0",
"@colony/colony-js-contract-loader-network": "^1.0.1",
Any thoughts?
"@colony/colony-js-contract-loader-network": "^1.0.2”
:thumbsup: Let me test it out! One more thing, I looped through each colony and called getToken()
on each colony's token property, and most of them are giving me a call exception:
[0] 0x0795Ef57326355ca6418575FB56C03368F5b8Ac8
[0] { name: 'Colony Network Token', symbol: 'CLNY', decimals: 18 }
[0] 0xB73EEbf7204894D7304d1De980bdd04C7ECb3AB3
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x3cCD37D11A7D057733bAd6AaD44597822D51B1B9
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x1217650382EE6a970b7a8B3AAc9295FDb4C75BdC
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x0858759903c0b41969eD45768356De53Ec3F32aa
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x60CA06Bfe36A2DEd283Bd9B57311825022b860a7
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x083d6883213F76D06165C6b2FD5ca2d41DA08a52
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x77BCB961B87e6A0Dc7D0f1D2a265b32dA79827a1
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x239e0ec7FB2A41de5A9a4d4a2BcB28FFAba977Df
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x44DfF5E3E01d9875F2Aa7bD60069A4Ab296e1624
[0] call exception (address="0x06012c8cf97BEaD5deAe237070F9587f8E7A266d", method="name()", value=[])
[0] 0x19300A7fdfb2dD949fE7a357Bb6bf6Df8097bE30
[0] { name: ' ', symbol: ' ', decimals: 18 }
Is this intended? Do people need to mint their token first or something?
Invalid contract definition: bytecode is missing or invalid
when I try to create a new token. I am using ethers adapter with NetworkLoader (rinkeby) and I've created a wallet with my private key specified. I am able to use the same ColonyNetworkClient object to make read calls, but createToken
does not seem to work... Any idea?
getTokenInfo
handle this and just return an object with the name?