Deploying to Testnet - Discussion

hello to community, i wanna know can we deploy a .sol file to etherscan having multiple contracts through remix if not can someone please tell me the way for that?

@ChrisPap @filip

1 Like

Hey @Paras_Arya, hope you are ok.

You should check our Ethereum Smart Contract Programming 201 course, there we will teach you how to use the testnet and deploy contract on it, basically the process is the same for the mainnet or testnet (in terms of deployment of contracts).

If you have any more questions, please let us know so we can help you! :slight_smile:

Carlos Z.

1 Like

Hello @Paras_Arya,

You could also check the “Deploying our Contract” course on “Deploy to Testnet” session in Ethereum Smart Contract Programming 101.
It gives a detail explanation and demonstration on how to deploy inheritance contracts to testnet or mainnet.

Hope that helped!

Hello @thecil, i hope you are doing great!
Thank you btw for your answer!
Thankfully i achieved to solve the matter.

1 Like

@thecil @ChrisPap thank you for your previous replies. Now I am again stuck somewhere seeking for your help

Error: TypeError: soljson.Pointer_stringify is not a function
at Object.compile (C:\Users\romeo\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\workflow-compile\legacy\index.js:72:1)
Truffle v5.0.42 (core: 5.0.42)
Node v14.15.1

getting this error can anyone help?

1 Like

Hey @Paras_Arya, hope you are ok.

We do not teach truffle in 101, we teach it on Ethereum Programming 201, but probably that issue come from the nodeJs version that have issues with truffle (the version of nodejs is not compatible with truffle entirely).

If you still have issues on it, please share the code, maybe (but not too probable) might be a bad syntax on your code :nerd_face:

If you have any more questions, please let us know so we can help you! :slight_smile:

Carlos Z.

hey @thecil,
thanks for the help @thecil it was just because of verison

1 Like

Hello for some rason I get the following whenever I try to get use ropsten test network:

Hi @siratoure95

Make sure to have enough ether (use this faucet

Reset Metamask just for the sake of testing:

Run the transaction again and adjust gas manually if needed.



Hi @fillip. I want call getPerson from the external contract, Am stock somewhere. Please how can i get values been return on my main contract to the external contracts. Please i need your help.

1 Like

Hi @chim4us,

Please post a copy of your code (both contracts) so we can see exactly what the problem is, and what you have/haven’t managed to do so far. Then we can provide you with the help you need :slight_smile:

On my external contract i wantt o use below to get person details

function ExGetPrs() public returns (string memory name, uint age,uint hight,bool senior){
string memory Name = instance.getPerson().Name;
People[Creator].Name, People[Creator].Age, People[Creator].Hight,People[Creator].senior

On my main contract thats the person function
function getPerson ()public view returns (string memory name, uint age,uint hight,bool senior){
address Creator = msg.sender;
return(People[Creator].Name, People[Creator].Age, People[Creator].Hight,People[Creator].senior );

Hi @chim4us,

Sorry for the delay in getting back to you on this.

Are you trying to recreate the code from the video lesson on external contracts from the OLD Ethereum Smart Contract Programming 101 course? Or is this your own extension and experiment with the code from that lesson? I’m asking, because without seeing your full code from both contracts, it’s difficult to understand what the overall context is. And depending on that, I may need to make different suggestions.

The contract with the external function you are calling (getPerson) is the external contract.

Do you already have the following?

  • An interface containing the external function header (in the same file as the contract with the exGetPrs function, or imported);
  • Your external contract instance defined as a state variable, using the address of the deployed external contract, and the interface as the data type (in the contract with the exGetPrs function).

Once you have those, you can call your external function within exGetPrs() with:


If getPerson() is the only external function you’re calling from your contract — and you’re not also making an external function call to create a Person instance mapped to the contract address you’re calling from — I can only assume that you want the same addresses, which have already created Person instances in the external contract, to be able to call getPerson() from the other contract to retrieve the data about the person they created. Is that correct? To be able to do that you will have to add an address parameter to getPerson() so that the caller of exGetPrs() has their own address passed to getPerson() and not the contract address. If there is no parameter, then msg.sender in getPerson() refers to the contract address (which hasn’t created a Person) and not the caller of exGetPrs() who wants to retrieve the person mapped to their address (not the contract address) in the mapping in the external contract. You can do this like this:

/* getPerson() called from within exGetPrs() */

/* External contract */
function getPerson(address _recordHolder) public view
returns(string memory _name, uint _age, uint _height, bool _senior) {
        People[_recordHolder].name, People[_recordHolder].age,
        People[_recordHolder].height, People[_recordHolder].senior

If you want to return all of the data for a person, without manipulating it in any way, then the only code you need to put in your exGetPrs() function body is…

return instance.getPerson(msg.sender);

You can’t extract the individual values returned, by using dot notation to append their property names to the function call. Instead, you need to extract them, and assign them to separate local variables, using destructuring assignment, as follows:

(string memory _name, uint _age, uint _height, bool _senior) =

You can then reference each of these local variables separately, by their name, to manipulate them before returning the values you want to return.

If you don’t want to extract all of the returned values, or if you just want to exact one of them, then you can omit the declarations of the local variables you don’t need, but leave the commas, so that both sides of the assignment operator have the same number of components e.g.

(string memory _name,,,) = instance.getPerson(msg.sender);
return _name;
// or
(string memory _name,, uint _height,) = instance.getPerson(msg.sender);
return (_name, _height);

You can read about this technique and syntax in the documentation:

I really don’t understand what it is you’re trying to do with this line of code in exGetPrs()…

1 Like

Hello Jesus, how have you solved the problem? Share the solution in the foro to help when others have the same problem. Thank you!

Hi @Valeria_dos_Santos,

The solution was just to refresh the Remix page (using Chrome) …

Are you experiencing problems that you need help with? If so, then let us know so we can help you.The post you are referring to is from over a year ago.

Thanks, I have achieved the popup that requests a metamask connection to the game. At the end of the game I get a prompt asking for my eth address, I put my eth address but I do not receive the confirmation of “transaction completed”, Looking at Etherscan and there is no minted tokens. Any idea what happens? Thank you!

Hi @Valeria_dos_Santos,

If your question is related to the Ethereum Game Programming, then that’s a different course, and you need to post this question here. This discussion topic is for students who have been following the Ethereum Smart Contract Programming 101 course, and involves deploying a more straightforward contract on the testnet. I would gladly help you but, unfortunately, I’m not familiar with the Game Programming course. I’m tagging the Specialist @thecil who I think should be able to answer your question, once you’ve re-posted it, or who will be able to get the right person to help you :slight_smile:

1 Like

Hey @Valeria_dos_Santos, hope you are ok.

Could you please explain me a little bit about the issue?

Are you trying to deploy a contract on a testnet from remix?

In Ethereum Smart Contract Programming 101 we do not explain how to deploy contracts on the network on a testnet.

Which process are you trying to follow for achieve that?

Carlos Z

1 Like

Hi Carlos, I wrote now to the other group “Game development”, sorry I was a bit confused about how this foro works.


Don’t worry, I’ve alerted him and he is looking at it for you in the other topic :slight_smile: :muscle:

1 Like