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

Small Bug in a code example in README File #23

Open
scottscheper opened this issue Jun 5, 2020 · 0 comments
Open

Small Bug in a code example in README File #23

scottscheper opened this issue Jun 5, 2020 · 0 comments

Comments

@scottscheper
Copy link

https://github.com/unwriter/datapay/blob/master/README.md#a-sending-from-data-and-pay

The code example under A. Sending from data and pay, currently is this:

const tx = {
  safe: true,
  data: ["0x6d02", "hello world"])
  pay: { key: "5JZ4RXH4MoXpaUQMcJHo8DxhZtkf5U5VnYd9zZH8BRKZuAbxZEw" }
}
datapay.send(tx, function(err, res) {
  console.log(res)
})

It's missing some commas and unnecessary parenthesis.

It should be this:

const tx = {
  safe: true,
  data: ["0x6d02", "hello world"],
  pay: { key: "5JZ4RXH4MoXpaUQMcJHo8DxhZtkf5U5VnYd9zZH8BRKZuAbxZEw" }
}
datapay.send(tx, function(err, res) {
  console.log(res)
})
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

No branches or pull requests

1 participant