• Mark Tyneway's avatar
    state-surgery: fix string slice · f6b101a6
    Mark Tyneway authored
    For some reason `strings.TrimPrefix` is removing
    an extra character sometimes. We want to remove the
    `.json` extension and using it will sometimes also
    remove the final character in the contract name.
    This is problematic because when you call
    `hh.GetDeployment`, with the name of the contract,
    it will not be able to find the deployment because
    the name of the deployment will not match the name
    passed in by the user. This instead slices off the
    `.json` from the string manually.
    f6b101a6
Name
Last commit
Last update
..
cmd Loading commit data...
data Loading commit data...
hardhat Loading commit data...
immutables Loading commit data...
solc Loading commit data...
state Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
addresses.go Loading commit data...
cli.go Loading commit data...
db.go Loading commit data...
genesis.go Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
params.go Loading commit data...
storage.go Loading commit data...
util.go Loading commit data...