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

Demo syntax doesn't work in typescript #330

Closed
Cryptok777 opened this issue Nov 22, 2023 · 0 comments · Fixed by #397
Closed

Demo syntax doesn't work in typescript #330

Cryptok777 opened this issue Nov 22, 2023 · 0 comments · Fixed by #397

Comments

@Cryptok777
Copy link
Contributor

while (pending = await generator.next()) {

截屏2023-11-21 下午11 40 25

The following should work:

let pending
while ((pending = await generator.next())) {
  await pending.sign([privateKey])
  let txid = await pending.submit(rpc)
  console.log("txid:", txid)
}

TheAlan404 added a commit to TheAlan404/rusty-kaspa that referenced this issue Jan 17, 2024
@TheAlan404 TheAlan404 mentioned this issue Jan 17, 2024
aspect added a commit that referenced this issue Jan 18, 2024
Co-authored-by: aspect <anton.yemelyanov@gmail.com>
D-Stacks pushed a commit to D-Stacks/rusty-kaspa that referenced this issue Jan 20, 2024
Co-authored-by: aspect <anton.yemelyanov@gmail.com>
D-Stacks pushed a commit to D-Stacks/rusty-kaspa that referenced this issue Jan 23, 2024
Co-authored-by: aspect <anton.yemelyanov@gmail.com>
KashProtocol pushed a commit to Kash-Protocol/rusty-kash that referenced this issue Jan 24, 2024
Co-authored-by: aspect <anton.yemelyanov@gmail.com>
smartgoo pushed a commit to smartgoo/rusty-kaspa that referenced this issue Jun 18, 2024
Co-authored-by: aspect <anton.yemelyanov@gmail.com>
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 a pull request may close this issue.

1 participant