• 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
..
testdata Loading commit data...
hardhat.go Loading commit data...
hardhat_test.go Loading commit data...
types.go Loading commit data...
utils.go Loading commit data...