Skip to content

Commit

Permalink
add ellided basescal url for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jterzis committed Sep 8, 2024
1 parent fc321e5 commit dc50c68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/bytecode-diff/utils/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ func ReadAllFacets(client *ethclient.Client, contractAddress string, basescanAPI
// read contract name from basescan source code api
contractName, err := GetContractNameFromBasescan(basescanUrl, facet.FacetAddress.Hex(), basescanAPIKey)
if err != nil {
return nil, fmt.Errorf("failed to get contract name from Basescan: %w", err)
return nil, fmt.Errorf(
"failed to get contract name from Basescan (%s...): %w",
basescanUrl[:len(basescanUrl)-5],
err,
)
}

facets[i].ContractName = contractName
Expand Down

0 comments on commit dc50c68

Please sign in to comment.