Release 1.7.0

This commit is contained in:
Elliot Lee
2020-04-28 14:34:49 -07:00
parent 05411527ee
commit 6cabb2e935
3 changed files with 7 additions and 3 deletions

View File

@@ -5600,6 +5600,7 @@ Submits a signed transaction. The transaction is not guaranteed to succeed; it m
Name | Type | Description
---- | ---- | -----------
signedTransaction | string | A signed transaction as returned by [sign](#sign).
failHard | boolean | *Optional* If `true`, and the transaction fails locally, do not retry or relay the transaction to other servers. Defaults to `false`.
### Return Value

View File

@@ -1,6 +1,6 @@
{
"name": "ripple-lib",
"version": "1.6.6-beta.2",
"version": "1.7.0",
"license": "ISC",
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
"files": [

View File

@@ -44,7 +44,10 @@ async function submit(
// 1. Validate
validate.submit({signedTransaction})
// 2. Make Request
const response = await this.request('submit', {tx_blob: signedTransaction, ...(failHard ? {fail_hard: failHard} : {})})
const response = await this.request('submit', {
tx_blob: signedTransaction,
...(failHard ? {fail_hard: failHard} : {})
})
// 3. Return Formatted Response
return formatSubmitResponse(response)
}