func exec(t *testing.T, cache Cache, id []byte, signer types.HumanAddress, store KVStore, api *GoAPI, querier Querier, gasExpected uint64) types.HandleResult {
	gasMeter := NewMockGasMeter(100000000)
	igasMeter := GasMeter(gasMeter)
	params, err := json.Marshal(mockEnv(signer))
	require.NoError(t, err)
	res, cost, err := Handle(cache, id, params, []byte(`{"release":{}}`), &igasMeter, store, api, &querier, 100000000)
	require.NoError(t, err)
	assert.Equal(t, gasExpected, cost)

	var resp types.HandleResult
	err = json.Unmarshal(res, &resp)
	require.NoError(t, err)
	return resp
}
// exec runs the handle tx with the given signer
exec runs the handle tx with the given signer
// exec runs the handle tx with the given signer
func exec(t *testing.T, cache Cache, id []byte, signer types.HumanAddress, store KVStore, api *GoAPI, querier Querier, gasExpected uint64) types.HandleResult {
	gasMeter := NewMockGasMeter(100000000)
	igasMeter := GasMeter(gasMeter)
	params, err := json.Marshal(mockEnv(signer))
	require.NoError(t, err)
	res, cost, err := Handle(cache, id, params, []byte(`{"release":{}}`), &igasMeter, store, api, &querier, 100000000)
	require.NoError(t, err)
	assert.Equal(t, gasExpected, cost)
	var resp types.HandleResult
	err = json.Unmarshal(res, &resp)
	require.NoError(t, err)
	return resp
}
func exec ( t * testing . T , cache Cache , id [ ] byte , signer types . HumanAddress , store KVStore , api * GoAPI , querier Querier , gasExpected uint64 ) types . HandleResult { gasMeter := NewMockGasMeter ( 100000000 ) igasMeter := GasMeter ( gasMeter ) params , err := json . Marshal ( mockEnv ( signer ) ) require . NoError ( t , err ) res , cost , err := Handle ( cache , id , params , [ ] byte ( `{"release":{}}` ) , & igasMeter , store , api , & querier , 100000000 ) require . NoError ( t , err ) assert . Equal ( t , gasExpected , cost ) var resp types . HandleResult err = json . Unmarshal ( res , & resp ) require . NoError ( t , err ) return resp }
exec runs the handle tx with the given signer
exec runs the handle tx with the given signer