chore(tests): Use strings instead of integers for script_type in tx_cache.

andrewkozlik/fido2-credmgmt
Andrew Kozlik 3 years ago
parent edf9b4ee85
commit 97974c8d5b

@ -5,7 +5,7 @@
"prev_index": 1,
"address_n": [2147483697, 2147483649, 2147483648, 0, 4],
"amount": 100000,
"script_type": 4,
"script_type": "SPENDP2SHWITNESS",
"script_sig": "160014039ba06270e6c6c1ad4e6940515aa5cdbad33f9e",
"witness": "0247304402205cfe0d0ca30b23c462f535f0c3670761592ba42517bd65fca959887e131b61c9022017d692c3a24ee7aba1205c9a1ee0df5a3d1fcc6a2906c9a77cf1145edb903f8e012103bb0e339d7495b1f355c49d385b79343e52e68d99de2fe1f7f476c465c9ccd167",
"sequence": 4294967295
@ -15,7 +15,7 @@
"prev_index": 0,
"address_n": [2147483697, 2147483649, 2147483648, 0, 3],
"amount": 998060,
"script_type": 4,
"script_type": "SPENDP2SHWITNESS",
"script_sig": "160014209297fb46272a0b7e05139440dbd39daea3e25a",
"sequence": 4294967295
}
@ -29,7 +29,7 @@
{
"address_n": [2147483697, 2147483649, 2147483648, 1, 3],
"amount": 94280,
"script_type": 5
"script_type": "PAYTOP2SHWITNESS"
}
],
"version": 1

@ -15,7 +15,7 @@
"prev_index": 0,
"address_n": [2147483732, 2147483649, 2147483648, 0, 0],
"amount": 100000,
"script_type": 3,
"script_type": "SPENDWITNESS",
"script_sig": "",
"witness": "02473044022069571005c302e4a7c3e549405a020e6af6cb4587cf67f6fb5c05abdd71fe15af0220398b6811bba6e202a0d091956b558e7590848ba80cf0fa56f0407caf1569a66c012103adc58245cf28406af0ef5cc24b8afba7f1be6c72f279b642d85c48798685f862",
"sequence": 4294967294
@ -26,12 +26,12 @@
{
"address": "tb1qldlynaqp0hy4zc2aag3pkenzvxy65saesxw3wd",
"amount": 10000,
"script_type": 4
"script_type": "PAYTOWITNESS"
},
{
"address_n": [2147483732, 2147483649, 2147483648, 1, 2],
"amount": 89859,
"script_type": 4
"script_type": "PAYTOWITNESS"
}
],
"version": 2

@ -15,7 +15,7 @@
"prev_index": 1,
"address_n": [2147483732, 2147483649, 2147483648, 0, 2],
"amount": 20000000,
"script_type": 3,
"script_type": "SPENDWITNESS",
"script_sig": "",
"witness": "0247304402207da4ce78bf9175ad4764794013360be569d3902861a54922aad6239659422f86022050145fc897a806b4ef06777a58471d39e9a10482cd8e61819ee18d6d22eaa6be01210357cb3a5918d15d224f14a89f0eb54478272108f6cbb9c473c1565e55260f6e93",
"sequence": 4294967293
@ -26,12 +26,12 @@
{
"address": "tb1qkvwu9g3k2pdxewfqr7syz89r3gj557l3uuf9r9",
"amount": 100000,
"script_type": 4
"script_type": "PAYTOWITNESS"
},
{
"address_n": [2147483732, 2147483649, 2147483648, 1, 1],
"amount": 19899859,
"script_type": 4
"script_type": "PAYTOWITNESS"
}
],
"version": 1

@ -15,7 +15,7 @@
"prev_index": 0,
"address_n": [2147483697, 2147483649, 2147483648, 0, 8],
"amount": 4973340,
"script_type": 4,
"script_type": "SPENDP2SHWITNESS",
"script_sig": "160014adbbadefe594e9e4bfccb9c699ae5d4f18716772",
"witness": "02483045022100e01560fee1583c8009c24ff431ecb1e21ac17852e0e8fc6cadee05472b135312022048943a660b52988362320211e91ca08bd35f28b8b7e55cf2b2c15692c662d8fa012102a52d8cf5a89c284bacff90a3d7c30a0166e0074ca3fc385f3efce638c50493b3",
"sequence": 4294967295
@ -25,7 +25,7 @@
"prev_index": 0,
"address_n": [2147483697, 2147483649, 2147483648, 0, 9],
"amount": 839318869,
"script_type": 4,
"script_type": "SPENDP2SHWITNESS",
"script_sig": "160014681ea49259abb892460bf3373e8a0b43d877fa18",
"sequence": 4294967295
}
@ -35,7 +35,7 @@
{
"address_n": [2147483697, 2147483649, 2147483648, 1, 6],
"amount": 744201489,
"script_type": 5
"script_type": "PAYTOP2SHWITNESS"
},
{
"address": "moE1dVYvebvtaMuNdXQKvu4UxUftLmS1Gt",

Loading…
Cancel
Save