From d22828b2229485559a3a00486030cc6e6c0f2f25 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 18 Dec 2017 10:23:54 -0800 Subject: [PATCH] [Docs] Improve escrow creation example to have ExecuteAfter date --- docs/index.md | 6 ++++-- test/fixtures/requests/prepare-escrow-creation.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index a2c0e14d..4d40e449 100644 --- a/docs/index.md +++ b/docs/index.md @@ -540,7 +540,8 @@ sourceTag | integer | *Optional* Source tag. { "destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo", "amount": "0.01", - "allowCancelAfter": "2014-09-24T21:21:50.000Z" + "allowExecuteAfter": "2014-09-24T21:21:50.000Z", + "allowCancelAfter": "2017-01-01T00:00:00.000Z" } ``` @@ -3291,7 +3292,8 @@ const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59'; const escrowCreation = { "destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo", "amount": "0.01", - "allowCancelAfter": "2014-09-24T21:21:50.000Z" + "allowExecuteAfter": "2014-09-24T21:21:50.000Z", + "allowCancelAfter": "2017-01-01T00:00:00.000Z" }; return api.prepareEscrowCreation(address, escrowCreation).then(prepared => {/* ... */}); diff --git a/test/fixtures/requests/prepare-escrow-creation.json b/test/fixtures/requests/prepare-escrow-creation.json index d3fcfa7b..382d8e9f 100644 --- a/test/fixtures/requests/prepare-escrow-creation.json +++ b/test/fixtures/requests/prepare-escrow-creation.json @@ -1,5 +1,6 @@ { "destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo", "amount": "0.01", - "allowCancelAfter": "2014-09-24T21:21:50.000Z" + "allowExecuteAfter": "2014-09-24T21:21:50.000Z", + "allowCancelAfter": "2017-01-01T00:00:00.000Z" }