From 15df874254f0d83b0e520db2eae917970e97c83c Mon Sep 17 00:00:00 2001
From: Alexander Graebe <alex@blockstack.com>
Date: Mon, 25 Jan 2021 19:03:17 -0800
Subject: [PATCH] fix: update nonce handling

Co-authored-by: kyranjamie <kyranjamie@users.noreply.github.com>
---
 src/pages/understand-stacks/integrate-stacking-delegation.md | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/pages/understand-stacks/integrate-stacking-delegation.md b/src/pages/understand-stacks/integrate-stacking-delegation.md
index 94137073..9799f004 100644
--- a/src/pages/understand-stacks/integrate-stacking-delegation.md
+++ b/src/pages/understand-stacks/integrate-stacking-delegation.md
@@ -127,8 +127,7 @@ const delegatorPrivateKey = 'd48f215481c16cbe6426f8e557df9b78895661971d717351265
 const delegatePoxAddress = 'msiYwJCvXEzjgq6hDwD9ueBka6MTfN962Z';
 
 // if you call this method multiple times during the same block, you need to increase the nonce manually
-let nonce = getNonce(delegatorAddress, network);
-nonce = nonce.add(new BN(1));
+const nonce = getNonce(delegatorAddress, network).add(new BN(1));
 
 const delegatorClient = new StackingClient(delegatorAddress, network);