Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

how to specify hostname for contract deployment and running dapp #17

Open
wgn1993 opened this issue Nov 17, 2021 · 2 comments
Open

how to specify hostname for contract deployment and running dapp #17

wgn1993 opened this issue Nov 17, 2021 · 2 comments

Comments

@wgn1993
Copy link

wgn1993 commented Nov 17, 2021

hey guys,
I already get the network up and running in containers, but what is the correct way to specify the hostname to deploy the smart contracts and interact with Dapp? I tried using truffle and specify the network hostname to bastion node or ECS node IP and it didn't work..
thanks for your help!

@wgn1993 wgn1993 changed the title how to specify how to specify hostname for contract deployment and running dapp Nov 17, 2021
@trung
Copy link
Contributor

trung commented Nov 17, 2021

The network is provisioned in the private subnet so you can't access directly from outside. There are 3 options:

  1. Login to Bastion node and deploy the contract
  2. Setup SSH tunnel from your machine to the Bastion node
  3. Manually install a proxy pass in Bastion (like Nginx) and proxy pass to the network

@wgn1993
Copy link
Author

wgn1993 commented Dec 2, 2021

when I am trying to deploy the smart contracts on the quorum network using this solution(lastest quorum&tessera image), it keeps throwing "Migrations" -- Transaction was not mined within 750 seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!.""
the tool I'm using is Truffle v5.4.22 (core: 5.4.22) + Node v16.13.0.
and the configuration file in truffle is:
module.exports = {
networks: {
development: {
host: "xxx",
port: 22000,
from: "0xaaa",
network_id: "6683", // Match any network id
type: "quorum",
gas:37580963800,
gasPrice:0
}}
};

for the previous version of quorum and tessera, this truffle configuration did work well for deploying the same contracts,
do you have any idea what might be the issue here...thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants