// Utility function that creates an AlgorandBuffer, and subsequently deletes the application
// so that only one remains.
Utility function that creates an AlgorandBuffer, and subsequently deletes the application
so that only one remains.
// Utility function that creates an AlgorandBuffer and subsequently deletes the application // so that only one remains .
func createBufferAndRemoveApps(t *testing.T) *AlgorandBuffer {
	buffer, err := NewAlgorandBufferFromEnv()
	if err != nil {
		t.Fatal(err)
	}
	err = buffer.Client.DeleteApplication(buffer.AccountCrypt, buffer.AppId)
	if err != nil {
		t.Fatal(err)
	}
	info, err := buffer.Client.AccountInformation(buffer.AccountCrypt.Address.String(), context.Background())
	assert.Nil(t, err)
	assert.Equal(t, 0, len(info.CreatedApps))
	return buffer
}
func createBufferAndRemoveApps ( t * testing . T ) * AlgorandBuffer { buffer , err := NewAlgorandBufferFromEnv ( ) if err != nil { t . Fatal ( err ) } err = buffer . Client . DeleteApplication ( buffer . AccountCrypt , buffer . AppId ) if err != nil { t . Fatal ( err ) } info , err := buffer . Client . AccountInformation ( buffer . AccountCrypt . Address . String ( ) , context . Background ( ) ) assert . Nil ( t , err ) assert . Equal ( t , 0 , len ( info . CreatedApps ) ) return buffer }
Utility function that creates an AlgorandBuffer, and subsequently deletes the application
so that only one remains.
Utility function that creates an AlgorandBuffer and subsequently deletes the application so that only one remains .
// Verify that app has 0 apps