Commit 924aba0e authored by yann300's avatar yann300

add callback if tx canceled

parent 19f0ac8e
...@@ -133,7 +133,12 @@ TxRunner.prototype.execute = function (args, callback) { ...@@ -133,7 +133,12 @@ TxRunner.prototype.execute = function (args, callback) {
{ label: 'Confirm', { label: 'Confirm',
fn: () => { fn: () => {
execute() execute()
}}) }}, {
label: 'Cancel',
fn: () => {
return callback('Transaction canceled by user.')
}
})
} else { } else {
execute() execute()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment