From e34ba2e76fabccb77b39d329bcc75bdac2b93b3e Mon Sep 17 00:00:00 2001
From: Faried Nawaz <faried@tintash.com>
Date: Mon, 26 Jul 2021 18:19:04 +0500
Subject: [PATCH] feat: multisig spending condition tests use integers, not
 BigNums

---
 .../transactions/tests/authorization.test.ts     | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/packages/transactions/tests/authorization.test.ts b/packages/transactions/tests/authorization.test.ts
index 662d486c9..2582fd55f 100644
--- a/packages/transactions/tests/authorization.test.ts
+++ b/packages/transactions/tests/authorization.test.ts
@@ -144,8 +144,8 @@ test('Multi sig spending condition uncompressed', () => {
 // auth.rs: tx_stacks_spending_condition_p2sh() (compressed multisig)
 test('Multi sig P2SH spending condition compressed', () => {
   const addressHashMode = AddressHashMode.SerializeP2SH;
-  const nonce = new BigNum(456);
-  const fee = new BigNum(567);
+  const nonce = 456;
+  const fee = 567;
   const pubKey = '03ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c77';
   const pubKeys = [pubKey, pubKey, pubKey];
 
@@ -210,8 +210,8 @@ test('Multi sig P2SH spending condition compressed', () => {
 // auth.rs: tx_stacks_spending_condition_p2wsh()
 test('Multi sig P2WSH spending condition compressed', () => {
   const addressHashMode = AddressHashMode.SerializeP2WSH;
-  const nonce = new BigNum(456);
-  const fee = new BigNum(567);
+  const nonce = 456;
+  const fee = 567;
   const pubKey = '03ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c77';
   const pubKeys = [pubKey, pubKey, pubKey];
 
@@ -274,10 +274,10 @@ test('Multi sig P2WSH spending condition compressed', () => {
 
 // auth.rs: tx_stacks_auth()
 test('Spending conditions', () => {
-  const bn123 = new BigNum(123);
-  const bn345 = new BigNum(345);
-  const bn456 = new BigNum(456);
-  const bn567 = new BigNum(567);
+  const bn123 = 123;
+  const bn345 = 345;
+  const bn456 = 456;
+  const bn567 = 567;
   const signer = '11'.repeat(20);
   const signatureFF = createMessageSignature('ff'.repeat(65));
   const signatureFE = createMessageSignature('fe'.repeat(65));