-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
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)
})
Metadata
Metadata
Assignees
Labels
No labels