Skip to content

Commit

Permalink
Adds 'should reject and refund a legacy pegin from a multisig account…
Browse files Browse the repository at this point in the history
… with the value exactly minimum' test

Rebases
  • Loading branch information
jeremy-then committed Oct 1, 2024
1 parent e592cc0 commit 45db702
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const FUNDS_MIGRATION_AGE_SINCE_ACTIVATION_END = 150;

const PEGIN_REJECTION_REASONS = {
PEGIN_CAP_SURPASSED_REASON: '1',
LEGACY_PEGIN_MULTISIG_SENDER: '2',
PEGIN_V1_INVALID_PAYLOAD_REASON: '4',
INVALID_AMOUNT: '5',
};
Expand Down
5 changes: 5 additions & 0 deletions lib/tests/2wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ const execute = (description, getRskHost) => {

federationAddress = await bridge.methods.getFederationAddress().call();
minimumPeginValueInSatoshis = Number(await bridge.methods.getMinimumLockTxValue().call());
<<<<<<< HEAD
btcFeeInSatoshis = btcToSatoshis(await btcTxHelper.getFee());
=======
minimumPeginValueInBtc = Number(satoshisToBtc(minimumPeginValueInSatoshis));
btcFeeInSatoshis = Number(btcToSatoshis(await btcTxHelper.getFee()));
>>>>>>> f0c37e5 (Adds 'should reject and refund a legacy pegin from a multisig account with the value exactly minimum' test)

await btcTxHelper.importAddress(federationAddress, 'federation');

Expand Down

0 comments on commit 45db702

Please sign in to comment.