Skip to content

Commit

Permalink
later
Browse files Browse the repository at this point in the history
  • Loading branch information
Djadih committed Dec 13, 2024
1 parent cb119fd commit bfc8897
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion core/types/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,36 @@ func TestNilChainIDDecode(t *testing.T) {
require.NotEqual(t, err, nil)
}

func TestFromChain(t *testing.T) {
func TestLocal(t *testing.T) {

tests := []struct {
name string
txType int
tx *Transaction
}{
{
"QuaiTx",
QuaiTxType,
QuaiTxData(),
},
// {
// "QiTx",
// QiTxType,

// },
// {
// "ExternalTx",
// ExternalTxType,
// },
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tt.tx.SetLocal(true)
require.True(t, tt.tx.IsLocal())

tt.tx.SetLocal(false)
require.False(t, tt.tx.IsLocal())
})
}
}

0 comments on commit bfc8897

Please sign in to comment.