@lukso/up-provider - v0.3.7
    Preparing search index...

    Function cleanupAccounts

    • Cleanup accounts array so there are no sparse values (i.e. empty values in the middle, this is not compatible with many of the web3 libraries (web3.js and viem)).

      Parameters

      • values: (`0x${string}` | undefined)[]

        original array

      Returns `0x${string}`[]

      Returns copy of array which makes 0x00..., null, undefined and empty string mark the end of the array This is useful for cleaning up the array of accounts.