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

Trouble requiring #313

Open
mixmix opened this issue Apr 17, 2024 · 2 comments
Open

Trouble requiring #313

mixmix opened this issue Apr 17, 2024 · 2 comments
Labels
build-chain ugggh the hole
Milestone

Comments

@mixmix
Copy link
Contributor

mixmix commented Apr 17, 2024

Doesn't work

const Entropy = require('@entropyxyz/sdk')

Have to use:

const Entropy = require('@entropyxyz/sdk').default

Test code:

const Entropy = require('@entropyxyz/sdk').default
const { getWallet } = require('@entropyxyz/sdk/dist/keys/index.js')

async function start () {
  // get a Signer object from seed using util function
  const seed = '98fb1f513a1d979aab3e77e4cb447fc7b0d724924314af4fb8f12e0140adc584'
  const signer = await getWallet(seed)

  // const entropyAccount: EntropyAccount = {
  const entropyAccount = {
    sigRequestKey: signer,
    programModKey: signer
  }

  const entropy = new Entropy({ account: entropyAccount })
  await entropy.ready

  console.log('DONE')
}

start()
@mixmix
Copy link
Contributor Author

mixmix commented Apr 17, 2024

I'd like to make a test in so we can confirm that our build step is making a module that can be reliably required

@mixmix mixmix added the build-chain ugggh the hole label Apr 17, 2024
@mixmix mixmix self-assigned this May 13, 2024
@frankiebee
Copy link
Contributor

@mixmix i thought you closed this?

@frankiebee frankiebee added this to the House Keeping milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-chain ugggh the hole
Projects
None yet
Development

No branches or pull requests

2 participants