hats-finance / illuminex-0x0bb4aa1f58719707405c231fcdf0b405714799cf

0 stars 1 forks source link

Missing Import for Endian Library in BitcoinAbstractWallet.sol #60

Open hats-bug-reporter[bot] opened 3 months ago

hats-bug-reporter[bot] commented 3 months ago

Github username: -- Twitter username: -- Submission hash (on-chain): 0x25630ba66ecc3b11405a1b8c885f6a9b9aec70436918b6f65ad32e7aad69176a Severity: low

Description: Description\ The BitcoinAbstractWallet.sol contract uses the Endian library within the _generateAddress function. However, the Endian library is neither imported nor inherited in the contract, which will result in a compilation error.

Attack Scenario\ File packages/contracts/contracts/illuminex/xengine/chains/btc/wallet/BitcoinAbstractWallet.sol

Attachments

  1. Proof of Concept (PoC) File

    https://github.com/illumineXswap/xengine-btc/blob/db34511e17fdf281aacef4267c300431d3ac12d7/packages/contracts/contracts/illuminex/xengine/chains/btc/wallet/BitcoinAbstractWallet.sol

  2. Revised Code File (Optional)

    import "../libraries/Endian.sol"; // Add this line to import the Endian library
rotcivegaf commented 3 months ago

packages/contracts/contracts/illuminex/xengine/chains/btc/wallet/BitcoinAbstractWallet.sol who import: