Skip to content

Commit

Permalink
remove invalidate flag + fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Mar 11, 2024
1 parent 9bd3814 commit a1770cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions relayer/pkg/chainlink/txm/nonce_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ func TestNonceManager_IncrementNextSequence(t *testing.T) {
require.NoError(t, err)
assert.Equal(t, initPlusOne, next)

// should fail with invalid chain id
err = nm.IncrementNextSequence(k, initPlusOne)
require.Error(t, err)
assert.Contains(t, err.Error(), fmt.Sprintf("nonce does not exist for key: %s and chain: %s", k.String(), "invalid_chainId"))

// should fail with invalid address
randAddr1 := starknetutils.BigIntToFelt(big.NewInt(1))
err = nm.IncrementNextSequence(randAddr1, initPlusOne)
Expand Down
2 changes: 1 addition & 1 deletion relayer/pkg/chainlink/txm/txm.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (txm *starktxm) broadcast(ctx context.Context, publicKey *felt.Felt, accoun
tx.Signature = signature

// get fee for tx
simFlags := []starknetrpc.SimulationFlag{starknetrpc.SKIP_VALIDATE}
simFlags := []starknetrpc.SimulationFlag{}
feeEstimate, err := account.EstimateFee(ctx, []starknetrpc.BroadcastTxn{tx}, simFlags, starknetrpc.BlockID{Tag: "pending"})
if err != nil {
var data any
Expand Down

0 comments on commit a1770cc

Please sign in to comment.