Skip to content

ETH <> Gwei <> Wei - double -> decimal #170

ETH <> Gwei <> Wei - double -> decimal

ETH <> Gwei <> Wei - double -> decimal #170

GitHub Actions / Test Results completed May 17, 2024 in 0s

❌️ Test Results - 98/100, failed: 2 - Failed in 648.091s

❌️ playmode-results.xml - 98/100, failed: 2 - Failed in 648.091s

Details

❌️ playmode-results.xml - 98/100, failed: 2 - Failed in 648.091s
  • ✅ CustomReadTests - 4/4 - Passed in 2.052s
    • Custom_WithAbi_Success - Passed in 0.907s
    • Custom_WithoutAbi_Fetch - Passed in 0.449s
    • Custom_WithString_Success - Passed in 0.573s
    • GetContract_Success - Passed in 0.123s
  • ✅ ERC1155ReadTests - 8/8 - Passed in 8.815s
    • ERC1155_BalanceOf_Success - Passed in 0.536s
    • ERC1155_Get_Success - Passed in 1.224s
    • ERC1155_GetAll_Success - Passed in 4.742s
    • ERC1155_GetOwned_Success - Passed in 0.979s
    • ERC1155_IsApprovedForAll_Success - Passed in 0.563s
    • ERC1155_TotalCount_Success - Passed in 0.299s
    • ERC1155_TotalSupply_Success - Passed in 0.351s
    • GetContract_Success - Passed in 0.121s
  • ❌️ ERC1155WriteTests - 3/4, failed: 1 - Failed in 235.081s
    • ❌️ ERC1155_Burn_Success - Failed in 180.014s
      Expected: True
      But was: False

        at ERC1155WriteTests+&lt;ERC1155_Burn_Success&gt;d__8.MoveNext () [0x000ed] in Assets/Tests/ERC1155WriteTests.cs:111
      at UnityEngine.TestTools.TestEnumerator+&lt;Execute&gt;d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46
      
    • ERC1155_Claim_Success - Passed in 16.815s

    • ERC1155_SetApprovalForAll_Success - Passed in 15.078s

    • ERC1155_Transfer_Success - Passed in 23.173s

  • ❌️ ERC20ReadTests - 4/5, failed: 1 - Failed in 4.626s
    • ERC20_AllowanceOf_Success - Passed in 0.929s
    • ERC20_BalanceOf_Success - Passed in 1.324s
    • ERC20_Get_Success - Passed in 1.136s
    • ❌️ ERC20_TotalSupply_Success - Failed in 1.114s
      System.AggregateException : One or more errors occurred. (Value was either too large or too small for a Decimal.)
      ----> System.OverflowException : Value was either too large or too small for a Decimal.
      at ERC20ReadTests+<ERC20_TotalSupply_Success>d__8.MoveNext () [0x000b5] in Assets/Tests/ERC20ReadTests.cs:97
      at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46
      --OverflowException
      at System.Numerics.BigInteger.op_Explicit (System.Numerics.BigInteger value) [0x00014] in <8234a40670204ce4ae60efcc6a6678db>:0
      at Thirdweb.Utils.FormatERC20 (System.String wei, System.Int32 decimalsToDisplay, System.Int32 decimals, System.Boolean addCommas) [0x0001b] in Assets/Thirdweb/Core/Scripts/Utils.cs:112
      at Thirdweb.ERC20.TotalSupply () [0x001ce] in Assets/Thirdweb/Core/Scripts/ERC20.cs:152
    • GetContract_Success - Passed in 0.123s
  • ✅ ERC20WriteTests - 4/4 - Passed in 77.884s
    • ERC20_Burn_Success - Passed in 24.318s
    • ERC20_Claim_Success - Passed in 15.032s
    • ERC20_SetAllowance_Success - Passed in 14.732s
    • ERC20_Transfer_Success - Passed in 23.802s
  • ✅ ERC721ReadTests - 8/8 - Passed in 6.628s
    • ERC721_BalanceOf_Success - Passed in 0.291s
    • ERC721_Get_Success - Passed in 1.022s
    • ERC721_GetAll_Success - Passed in 3.231s
    • ERC721_GetOwned_Success - Passed in 0.507s
    • ERC721_IsApprovedForAll_Success - Passed in 0.499s
    • ERC721_OwnerOf_Success - Passed in 0.571s
    • ERC721_TotalCount_Success - Passed in 0.384s
    • GetContract_Success - Passed in 0.123s
  • ✅ ERC721WriteTests - 1/1 - Passed in 14.059s
    • ERC721_SetApprovalForAll_Success - Passed in 14.059s
  • ✅ EventsTests - 1/1 - Passed in 0.360s
    • GetEventLogs_Success - Passed in 0.360s
  • ✅ MarketplaceReadTests - 20/20 - Passed in 80.392s
    • DirectListings_GetAll_Success - Passed in 53.950s
    • DirectListings_GetAllValid_Success - Passed in 5.498s
    • DirectListings_GetListing_Success - Passed in 1.806s
    • DirectListings_GetTotalCount_Success - Passed in 0.300s
    • DirectListings_IsBuyerApprovedForListing_Success - Passed in 0.314s
    • DirectListings_IsCurrencyApprovedForListing_Success - Passed in 0.314s
    • EnglishAuctions_GetAll_Success - Passed in 2.336s
    • EnglishAuctions_GetAllValid_Success - Passed in 2.251s
    • EnglishAuctions_GetAuction_Success - Passed in 1.596s
    • EnglishAuctions_GetBidBufferBps_Success - Passed in 1.590s
    • EnglishAuctions_GetMinimumNextBid_Success - Passed in 2.643s
    • EnglishAuctions_GetTotalCount_Success - Passed in 0.303s
    • EnglishAuctions_GetWinner_Success - Passed in 0.307s
    • EnglishAuctions_GetWinningBid_Success - Passed in 0.839s
    • EnglishAuctions_IsWinningBid_Success - Passed in 0.291s
    • GetContract_Success - Passed in 0.130s
    • Offers_GetAll_Success - Passed in 2.066s
    • Offers_GetAllValid_Success - Passed in 1.998s
    • Offers_GetOffer_Success - Passed in 1.560s
    • Offers_GetTotalCount_Success - Passed in 0.300s
  • ✅ PackReadTests - 5/5 - Passed in 2.024s
    • BalanceOf_Success - Passed in 0.298s
    • Get_Success - Passed in 0.789s
    • GetPackContents_Success - Passed in 0.324s
    • IsApprovedForAll_Success - Passed in 0.304s
    • TotalSupply_Success - Passed in 0.310s
  • ✅ SmartWalletTests - 5/5 - Passed in 80.147s
    • Connect_WithGaslessManagedAccountFactory_Success - Passed in 7.422s
    • CreateSessionKey_WithValidSignerCheck_Success - Passed in 16.888s
    • Deploy_WithSign_Success - Passed in 14.958s
    • IsDeployed_Success - Passed in 15.362s
    • RevokeSessionKey_WithValidSignerCheck_Success - Passed in 25.517s
  • ✅ StorageTests - 11/11 - Passed in 7.941s
    • DownloadImage_WithIPFS_Success - Passed in 0.813s
    • DownloadImage_WithoutIPFS_Success - Passed in 0.363s
    • DownloadText_WithIPFS_Success - Passed in 1.107s
    • DownloadText_WithoutIPFS_Success - Passed in 0.901s
    • Gateway_WithClientId_Success - Passed in 0.119s
    • Gateway_WithoutClientId_Success - Passed in 0.122s
    • Gateway_WithOverride_Success - Passed in 0.130s
    • UploadFromPath_WithClientId_Success - Passed in 0.490s
    • UploadFromPath_WithoutClientId_Fail - Passed in 3.010s
    • UploadText_WithClientId_Success - Passed in 0.766s
    • UploadText_WithoutClientId_Fail - Passed in 0.119s
  • ✅ ThirdwebManagerTests - 8/8 - Passed in 7.747s
    • Initialization_HappyPath - Passed in 0.122s
    • Initialization_WithClientIdAndBundleIdOverride_AppliesCorrectly - Passed in 0.120s
    • Initialization_WithClientIdNoBundleIdOverride_AppliesCorrectly - Passed in 0.135s
    • Initialization_WithDefaultChain_Success - Passed in 0.117s
    • Initialization_WithRpcOverride_AppliesCorrectly - Passed in 0.125s
    • Initialization_WithUnknownChain_ConnectsButFails - Passed in 7.100s
    • Initialization_WithUnsupportedActiveChain_Throws - Passed in 0.011s
    • SingletonPattern_Enforcement_Success - Passed in 0.017s
  • ✅ TransactionReadTests - 1/1 - Passed in 0.323s
    • Static_WaitForTransactionResult_Success - Passed in 0.323s
  • ✅ WalletTests - 15/15 - Passed in 119.913s
    • Authenticate_WithLocalWallet_Success - Passed in 7.965s
    • Connect_WithLocalWallet_Fail - Passed in 15.370s
    • Connect_WithLocalWallet_Success - Passed in 7.128s
    • Disconnect_WithLocalWallet_Success - Passed in 7.021s
    • Export_WithLocalWallet_Success - Passed in 14.161s
    • GetAddress_WithLocalWallet_Fail - Passed in 7.532s
    • GetAddress_WithLocalWallet_Success - Passed in 6.994s
    • GetBalance_WithLocalWallet_Success - Passed in 7.376s
    • GetChainId_WithLocalWallet_Success - Passed in 7.200s
    • IsConnected_WithLocalWallet_Fail - Passed in 0.131s
    • IsConnected_WithLocalWallet_Success - Passed in 6.995s
    • SendRawTransaction_WithLocalWallet_Fail - Passed in 8.334s
    • Sign_WithLocalWallet_Success - Passed in 7.791s
    • Transfer_WithLocalWallet_Fail - Passed in 8.741s
    • Verify_WithLocalWallet_Success - Passed in 7.174s

Annotations

Check failure on line 111 in Assets/Tests/ERC1155WriteTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

ERC1155WriteTests.ERC1155_Burn_Success

  Expected: True
  But was:  False
Raw output
at ERC1155WriteTests+<ERC1155_Burn_Success>d__8.MoveNext () [0x000ed] in /github/workspace/Assets/Tests/ERC1155WriteTests.cs:111
at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46

Check failure on line 97 in Assets/Tests/ERC20ReadTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

ERC20ReadTests.ERC20_TotalSupply_Success

System.AggregateException : One or more errors occurred. (Value was either too large or too small for a Decimal.)
  ----> System.OverflowException : Value was either too large or too small for a Decimal.
Raw output
  at ERC20ReadTests+<ERC20_TotalSupply_Success>d__8.MoveNext () [0x000b5] in /github/workspace/Assets/Tests/ERC20ReadTests.cs:97 
  at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46 
--OverflowException
  at System.Numerics.BigInteger.op_Explicit (System.Numerics.BigInteger value) [0x00014] in <8234a40670204ce4ae60efcc6a6678db>:0 
  at Thirdweb.Utils.FormatERC20 (System.String wei, System.Int32 decimalsToDisplay, System.Int32 decimals, System.Boolean addCommas) [0x0001b] in /github/workspace/Assets/Thirdweb/Core/Scripts/Utils.cs:112 
  at Thirdweb.ERC20.TotalSupply () [0x001ce] in /github/workspace/Assets/Thirdweb/Core/Scripts/ERC20.cs:152