Skip to content

Commit

Permalink
Turn all ints above 2 bilion to strings in tests (32 bit compat)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Oct 14, 2023
1 parent 1e4cf45 commit 6ba25c7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion t/40-transaction/02-digest.t
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ subtest 'should digest transactions - legacy' => sub {
);

$tx->add_output(
value => 40_00000000,
value => '40_00000000',
locking_script => [
P2PK => [
hex =>
Expand Down
6 changes: 3 additions & 3 deletions t/40-transaction/05-sign.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ subtest 'should sign transactions (P2PK)' => sub {
output_index => 0,
output => {
locking_script => [P2PK => $prv->get_public_key->to_serialized],
value => 50_00000000,
value => '50_00000000',
},
)->register;

Expand All @@ -41,7 +41,7 @@ subtest 'should sign transactions (P2PK)' => sub {
);

$tx->add_output(
value => 40_00000000,
value => '40_00000000',
locking_script => [
P2PK => [
hex =>
Expand Down Expand Up @@ -250,7 +250,7 @@ subtest 'should sign transactions (two inputs)' => sub {
);

$tx->add_output(
value => 50_00000000,
value => '50_00000000',
locking_script => [
P2SH => $prv->get_public_key->get_compat_address
],
Expand Down
2 changes: 1 addition & 1 deletion t/40-transaction/06-checksig.t
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ subtest 'should verify transactions (P2PK)' => sub {
);

$tx->add_output(
value => 40_00000000,
value => '40_00000000',
locking_script => [
P2PK => [
hex =>
Expand Down
4 changes: 2 additions & 2 deletions t/lib/TransactionStore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ my %utxos = (
'0411db93e1dcdb8a016b49840f8c53bc1eb68a382e97b1482ecad7b148a6909a5cb2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f999b8643f656b412a3'
]
],
value => 50_00000000,
value => '50_00000000',
},
'f483a885eb4ab57c2d1a5747d3be8ff83fa825ddaed2fd8176ed2cac9ee98fae;1' => {
locking_script => [hex => '76a91415c055fa681fef5f8d342fc63b730648120679b388ac'],
Expand Down Expand Up @@ -76,7 +76,7 @@ my %utxos = (
},
'f825690aee1b3dc247da796cacb12687a5e802429fd291cfd63e010f02cf1508;0' => {
locking_script => [hex => '00205d1b56b63d714eebe542309525f484b7e9d6f686b3781b6f61ef925d66d6f6a0'],
value => 49_00000000,
value => '49_00000000',
},
'01c0cf7fba650638e55eb91261b183251fbb466f90dff17f10086817c542b5e9;0' => {
locking_script => [hex => '0020ba468eea561b26301e4cf69fa34bde4ad60c81e70f059f045ca9a79931004a4d'],
Expand Down

0 comments on commit 6ba25c7

Please sign in to comment.