Commit 48771c85 authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

chore: Clean up details in new abi_loader (#10238)

* Remove accidentally added find-version.sh

* Close abi file
parent 38c2fa4e
#!/usr/bin/env bash
set -euo pipefail
NAME=${1:?Must specify release name}
git describe --tags --candidates=100 --match="${NAME}/*" | sed "s/${NAME}\///"
......@@ -32,6 +32,7 @@ func loadABI(name string) (*abi.ABI, error) {
if err != nil {
return nil, fmt.Errorf("failed to load ABI for contract %v: %w", name, err)
}
defer in.Close()
if parsed, err := abi.JSON(in); err != nil {
return nil, err
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment