diff --git a/flowkit_test.go b/flowkit_test.go index 031f1412..0b66b280 100644 --- a/flowkit_test.go +++ b/flowkit_test.go @@ -2122,4 +2122,4 @@ func Test_BlockQuery(t *testing.T) { _, err = NewBlockQuery("invalid") assert.EqualError(t, err, "invalid query: invalid, valid are: \"latest\", block height or block ID") -} \ No newline at end of file +} diff --git a/state.go b/state.go index 1a09dc68..96343570 100644 --- a/state.go +++ b/state.go @@ -240,7 +240,7 @@ func (p *State) AccountByContractName(contractName string, network config.Networ } } if accountName == "" { - return nil, fmt.Errorf("contract not found in state") + return nil, fmt.Errorf("deployment of %s not found for network %s", contractName, network.Name) } accs := p.Accounts()