fix: add `SetNodeAccountIDs(env.NodeAccountIDs)` to several transactions/queries in `topic_info_query_test.go`
@@ -34,6 +34,7 @@ func TestTopicInfoQuery_Execute(t *testing.T) {
assert.NotNil(t, topicID)
info, err := NewTopicInfoQuery().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
SetMaxQueryPayment(NewHbar(1)).
Execute(env.Client)
@@ -45,6 +46,7 @@ func TestTopicInfoQuery_Execute(t *testing.T) {
assert.Equal(t, env.Client.GetOperatorPublicKey().String(), info.AdminKey.String())
_, err = NewTopicDeleteTransaction().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
Execute(env.Client)
assert.NoError(t, err)
@@ -79,6 +81,7 @@ func TestTopicInfoQueryCost_Execute(t *testing.T) {
assert.NoError(t, err)
_, err = NewTopicDeleteTransaction().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
Execute(env.Client)
assert.NoError(t, err)
@@ -113,6 +116,7 @@ func TestTopicInfoQueryCost_BigMax_Execute(t *testing.T) {
assert.NoError(t, err)
_, err = NewTopicDeleteTransaction().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
Execute(env.Client)
assert.NoError(t, err)
@@ -137,6 +141,7 @@ func TestTopicInfoQueryCost_SmallMax_Execute(t *testing.T) {
assert.NotNil(t, topicID)
topicInfo := NewTopicInfoQuery().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetMaxQueryPayment(HbarFromTinybar(1)).
SetTopicID(topicID)
@@ -150,6 +155,7 @@ func TestTopicInfoQueryCost_SmallMax_Execute(t *testing.T) {
}
_, err = NewTopicDeleteTransaction().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
Execute(env.Client)
assert.NoError(t, err)
@@ -174,6 +180,7 @@ func TestTopicInfoQueryCost_InsufficientFee_Execute(t *testing.T) {
assert.NotNil(t, topicID)
topicInfo := NewTopicInfoQuery().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetMaxQueryPayment(NewHbar(1)).
SetTopicID(topicID)
@@ -186,6 +193,7 @@ func TestTopicInfoQueryCost_InsufficientFee_Execute(t *testing.T) {
}
_, err = NewTopicDeleteTransaction().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
Execute(env.Client)
assert.NoError(t, err)
@@ -227,6 +235,7 @@ func TestTopicInfoQuery_Threshold_Execute(t *testing.T) {
assert.NotNil(t, topicID)
info, err := NewTopicInfoQuery().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
SetMaxQueryPayment(NewHbar(1)).
Execute(env.Client)
@@ -239,6 +248,7 @@ func TestTopicInfoQuery_Threshold_Execute(t *testing.T) {
assert.NotEmpty(t, info.SubmitKey.String())
_, err = NewTopicDeleteTransaction().
+ SetNodeAccountIDs(env.NodeAccountIDs).
SetTopicID(topicID).
Execute(env.Client)
assert.NoError(t, err)
