Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>
  • Loading branch information
NikolaMirchev committed Feb 1, 2024
1 parent 3e8c8fb commit 447ffc3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions contract_execute_transaction_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ package hedera
*/

import (
"fmt"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -106,15 +107,15 @@ func TestIntegrationContractExecuteTransactionNoContractID(t *testing.T) {
t.Parallel()
env := NewIntegrationTestEnv(t)

_, err := NewContractExecuteTransaction().
resp, err := NewContractExecuteTransaction().
SetGas(100000).
SetNodeAccountIDs(env.NodeAccountIDs).
SetFunction("setMessage", NewContractFunctionParameters().AddString("new message")).
Execute(env.Client)
require.NoError(t, err)
//if err != nil {
// assert.Equal(t, fmt.Sprintf("exceptional precheck status INVALID_CONTRACT_ID received for transaction %s", resp.TransactionID), err.Error())
//}

if err != nil {
assert.Equal(t, fmt.Sprintf("exceptional precheck status INVALID_CONTRACT_ID received for transaction %s", resp.TransactionID), err.Error())
}
}

func TestIntegrationContractExecuteTransactionNoGas(t *testing.T) {
Expand Down

0 comments on commit 447ffc3

Please sign in to comment.