Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperspace #17

Draft
wants to merge 38 commits into
base: master
Choose a base branch
from
Draft

Hyperspace #17

wants to merge 38 commits into from

Conversation

lalexgap
Copy link
Contributor

No description provided.

## simple-hub, xstate-wallet
CONSENSUS_APP_ADDRESS = '0xeB1170bf49fac482fA296C98Ac04024e8a2d6519'

### NitroAdjudicator and ETHAssetHolder deployed by George Knee, by uploading files to https://remix.ethereum.org/ and using compiler 0.6.10+commit.00c0fcaf, optimization ON. Source code verified on https://goerli.etherscan.io/ .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: let's clean up the comments and references to Goerli in this file.

@@ -41,6 +40,7 @@ async function fund(channelID: string, value: BigNumber): Promise<void> {
}

await lock.acquire(channelID, async () => {
console.log('SANITYTYUASDAS');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✂️

@@ -94,7 +93,7 @@ async function createEthAssetHolder() {
{ETH_ASSET_HOLDER_ADDRESS: process.env.ETH_ASSET_HOLDER_ADDRESS},
'Connected to eth asset holder'
);

console.log(contract);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✂️

Comment on lines +55 to +56
// TODO: re-enable this when we figure out the proper way to do this
//const ready = currentNetwork === requiredNetwork && initialized;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain a bit more?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that we're not getting the correct chain id from metamask (at least in firefox). We seem to get back a 0 instead of 3141. Mostly like due to changes to how window.ethereum works.

For now I just disabled the check.

@@ -516,3 +518,4 @@ export class PaymentChannelClient {
export const paymentChannelClient = new PaymentChannelClient(
new ChannelClient(window.channelProvider)
);
paymentChannelClient.initialize();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm maybe not. It seemed like the payment channel wasn't getting initialized without this but let me investigate.

@netlify
Copy link

netlify bot commented Feb 27, 2023

Deploy Preview for lucky-chaja-70e2bd ready!

Name Link
🔨 Latest commit 8d91103
🔍 Latest deploy log https://app.netlify.com/sites/lucky-chaja-70e2bd/deploys/640210b7101eb9000828b72f
😎 Deploy Preview https://deploy-preview-17--lucky-chaja-70e2bd.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

fixes warning about <div> being a descendent of <p>
silences a warning about this event being deprecated
and move from dev to prod dependency
@geoknee geoknee self-requested a review February 28, 2023 17:54
@geoknee geoknee marked this pull request as draft February 28, 2023 17:54
geoknee and others added 2 commits February 28, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants