blockscout-rs
blockscout-rs copied to clipboard
smart contract verify exception
hi all, when we use blockscout build-in smart contract verify service to verify a complex smart contract, the verification phase is success. However, when we click [read contract] button, it crashed internally.
the error log is as below:
2024-05-14T09:49:45.041 [error] #PID<0.7937.2> running BlockScoutWeb.Endpoint (connection #PID<0.7936.2>, stream id 1) terminated
Server: explorer.whalelink-uat.net:80 (http)
Request: GET /api/v2/smart-contracts/0x00fbcF3308A81D9D47992b28F4070b1ACBF51573/methods-read?is_custom_abi=false
** (exit) an exception was raised:
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a bitstring
:erlang.byte_size([<<3, 189, 103, 0, 91, 204, 178, 151, 178, 213, 182, 91, 176, 95, 92, 115, 48, 193, 99, 138, 31, 195, 78, 126, 78, 242, 241, 249, 157, 16, 206, 112>>, <<23, 140, 52, 219, 61, 204, 227, 14, 0, 133, 61, 116, 115, 132, 1, 112, 102, 7, 191, 127, 205, 189, 108, 68, 152, 198, 253, 14, 163, 235, 229, 15>>])
(explorer 6.0.0) lib/explorer/smart_contract/reader.ex:851: Explorer.SmartContract.Reader.bytes_to_string/1
(explorer 6.0.0) lib/explorer/smart_contract/reader.ex:737: Explorer.SmartContract.Reader.new_value/3
(elixir 1.14.5) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(explorer 6.0.0) lib/explorer/smart_contract/reader.ex:768: Explorer.SmartContract.Reader.new_value/3
(elixir 1.14.5) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(explorer 6.0.0) lib/explorer/smart_contract/reader.ex:768: Explorer.SmartContract.Reader.new_value/3
(explorer 6.0.0) lib/explorer/smart_contract/reader.ex:700: anonymous fn/3 in Explorer.SmartContract.Reader.link_outputs_and_values/3