// Checks if client.GenerateApplicationCallTx creates a noop transaction that gets accepted
// by the smart contract
Checks if client.GenerateApplicationCallTx creates a noop transaction that gets accepted
by the smart contract
// Checks if client . GenerateApplicationCallTx creates a noop transaction that gets accepted // by the smart contract
func TestSmartContract_GenerateTransaction(t *testing.T) {
	_ = createBufferAndRemoveApps(t)
	buffer, err := NewAlgorandBufferFromEnv()
	assert.Nil(t, err)
	params, err := buffer.Client.SuggestedParams(context.Background())
	assert.Nil(t, err)
	txn, err := client.GenerateApplicationCallTx(buffer.AppId, buffer.AccountCrypt, params, types.NoOpOC)
	assert.Nil(t, err)
	ctx, cancel := context.WithTimeout(context.Background(), client.AlgorandDefaultTimeout)
	_, err = buffer.Client.ExecuteTransaction(buffer.AccountCrypt, txn, ctx)
	cancel()
	assert.Nil(t, err)
}
func TestSmartContract_GenerateTransaction ( t * testing . T ) { _ = createBufferAndRemoveApps ( t ) buffer , err := NewAlgorandBufferFromEnv ( ) assert . Nil ( t , err ) params , err := buffer . Client . SuggestedParams ( context . Background ( ) ) assert . Nil ( t , err ) txn , err := client . GenerateApplicationCallTx ( buffer . AppId , buffer . AccountCrypt , params , types . NoOpOC ) assert . Nil ( t , err ) ctx , cancel := context . WithTimeout ( context . Background ( ) , client . AlgorandDefaultTimeout ) _ , err = buffer . Client . ExecuteTransaction ( buffer . AccountCrypt , txn , ctx ) cancel ( ) assert . Nil ( t , err ) }
Checks if client.GenerateApplicationCallTx creates a noop transaction that gets accepted
by the smart contract
Checks if client . GenerateApplicationCallTx creates a noop transaction that gets accepted by the smart contract
// Get Parameters // NoOp Application call from original creator // Execute Transaction