Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew1001 committed Aug 22, 2024
1 parent ac4e32e commit d2e3233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/ethereum/deploy_contract_prepare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package ethereum

import (
"encoding/json"
"fmt"
"strings"
"testing"

Expand Down Expand Up @@ -108,7 +109,8 @@ func TestDeployContractPrepareOkLargeInputParam(t *testing.T) {
assert.NoError(t, err)
assert.Empty(t, reason)
assert.Equal(t, int64(1000000), res.Gas.Int64())
assert.True(t, strings.HasSuffix(res.TransactionData, "84595161401484A000001"))
fmt.Println(res.TransactionData)
assert.True(t, strings.HasSuffix(res.TransactionData, "84595161401484a000001"))
}

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

0 comments on commit d2e3233

Please sign in to comment.