From ba38f442c8d5d4abbc53dccb70e913ec6518e923 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 4 Jul 2017 14:52:21 +0200 Subject: [PATCH] Update use of --sequence in counter tutorial --- docs/guide/basecoin-plugins.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/guide/basecoin-plugins.md b/docs/guide/basecoin-plugins.md index ad9ed615a9..36655b56bf 100644 --- a/docs/guide/basecoin-plugins.md +++ b/docs/guide/basecoin-plugins.md @@ -113,8 +113,8 @@ But the Counter has an additional command, `countercli tx counter`, which crafts an `AppTx` specifically for this plugin: ```shelldown[2] -countercli tx counter --name cool --sequence=2 -countercli tx counter --name cool --sequence=3 --valid +countercli tx counter --name cool +countercli tx counter --name cool --valid ``` The first transaction is rejected by the plugin because it was not marked as @@ -129,10 +129,11 @@ countercli query counter Tada! We can now see that our custom counter plugin tx went through. You should see a Counter value of 1 representing the number of valid transactions. If we send another transaction, and then query again, we will see the value -increment: +increment. Note that we need the sequence number here to send the coins +(it didn't increment when we just pinged the counter) ```shelldown[4] -countercli tx counter --name cool --countfee=2mycoin --sequence=4 --valid +countercli tx counter --name cool --countfee=2mycoin --sequence=2 --valid countercli query counter ```