Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangliu-cb committed Apr 16, 2024
1 parent c7d07fa commit 77dec74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/construction/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

var (
transferValue = "1"
transferContractValue = "0"
transferContractValue = "1"
transferGasPrice = uint64(5000000000)
transferGasLimit = uint64(21000)
transferGasTipCap = uint64(100000000)
Expand Down Expand Up @@ -83,7 +83,9 @@ func TestMetadata(t *testing.T) {
Return(big.NewInt(int64(transferGasPrice)), nil)

contractData, _ := hexutil.Decode(metadataGenericData)
client.On("GetContractCallGasLimit", ctx, tokenContractAddress, testingFromAddress, transferContractValue, contractData).
testValue := new(big.Int)
testValue.SetString(transferContractValue, 10)
client.On("GetContractCallGasLimit", ctx, tokenContractAddress, testingFromAddress, testValue, contractData).
Return(transferGasLimitContract, nil)

client.On("GetGasTipCap", ctx, mock.Anything).
Expand Down

0 comments on commit 77dec74

Please sign in to comment.