realcodywburns / TokenMint

:fish_cake: Token Browser and Manager for Ethereum Classic and Ethereum
Apache License 2.0
44 stars 27 forks source link

Test with testner, Ropsten for example #88

Closed senzacionale closed 6 years ago

senzacionale commented 7 years ago

https://github.com/ethereumproject/TokenMint/blob/master/src/lib/rpc.js

@elaineo can you provide an example for rpc.js? I can not make it to work with ropsten.

Thank you

elaineo commented 7 years ago

You should change this line: const NodeApi = "https://mewapi.epool.io";

Replace mewapi.epool.io with your ropsten API.

elaineo commented 7 years ago

(btw, i tested with https://ropsten.infura.io... see if that works.)

senzacionale commented 7 years ago

@elaineo thank you, that was fast response :)

I will test it right now

senzacionale commented 7 years ago

I tested but I got always this error:

Unhandled Rejection (BigNumber Error): new BigNumber() not a number:

You can test it with this private key from ropsten network: dcc7f7b0eeb1c3b70038033333adcfd5a0a49324215ec7c824cee819d448304d

Address: 0xFcfBbF980333FE029fA086dd4fe011AAac540702 you have 3 ETH to test

I also open new ticket regarding to this topic

elaineo commented 7 years ago

Where does that error appear?

On Mon, Oct 16, 2017 at 12:10 PM, senzacionale notifications@github.com wrote:

I tested but I got always this error:

Unhandled Rejection (BigNumber Error): new BigNumber() not a number:

You can test it with this private key from ropsten network: dcc7f7b0eeb1c3b70038033333adcfd5a0a49324215ec7c824cee819d448304d

I also open new ticket regarding to this topic

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ethereumproject/TokenMint/issues/88#issuecomment-337000909, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPZr1HDq2yNiSFMdnOk7e88xtGro-RBks5ss6oagaJpZM4P7CIH .

senzacionale commented 7 years ago

For example when I click on "Mint a Token" -> "Select the format of your private key." -> click "Open Wallet"

senzacionale commented 7 years ago

@elaineo can you reproduce error?

Thank you

elaineo commented 7 years ago

I'm out of the country right now, I will be back at my computer on Friday and will try again then.

On Tue, Oct 17, 2017 at 8:16 AM, senzacionale notifications@github.com wrote:

Reopened #88 https://github.com/ethereumproject/TokenMint/issues/88.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ethereumproject/TokenMint/issues/88#event-1297096512, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPZr8RxdK0OLI645ZHqWVHMJ62mzPZcks5stMS1gaJpZM4P7CIH .

senzacionale commented 7 years ago

ok thank you

elaineo commented 7 years ago

Okay sorry, some of the contracts had not been updated and deployed on testnet. It should work now on this branch: https://github.com/ethereumproject/TokenMint/tree/ropsten

senzacionale commented 7 years ago

thank you. I will test it and let you know.

small update

I checked the code

do I need this?

-export const IcoMachineAddress = "0xbebd7b2a9edb51b28854236041daec1f5e0f2398"; +export const IcoMachineAddress = "0xD459e10654a2387Fc6ab2040627febEbEa682C56";

-export const RegistryAddress = '0xf4d139fE4f73725dcc6eb364e4593a00F07DC0a9'; +export const RegistryAddress = '0x20ea4049c154769264d8667d780ae9647c150f21';

elaineo commented 7 years ago

yes, you need the second set (contract addresses are different on ropsten)

senzacionale commented 7 years ago

what is the difference between IcoMachineAddress and RegistryAddress ? And why to hardcode it

elaineo commented 7 years ago

Registry: https://github.com/ethereumproject/TokenMint/blob/master/contracts/deployed/manReg.sol

IcoMachine: https://github.com/ethereumproject/TokenMint/blob/master/contracts/deployed/icoMachine.sol

hardcoded because they are deployed contracts.

elaineo commented 7 years ago

there is an open issue to put the addresses into a config file: https://github.com/ethereumproject/TokenMint/issues/73

senzacionale commented 7 years ago

ok, If I want to redeploy it on different address then I simply need to change hard coded values. Does not hurt me so much currently. Thx