mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 23:55:11 +00:00
core: unify verifyTxAttributes
errors
We already have pretty ErrInvalidAttribute error, so I think that all other `verifyTxAttributes` errors should be wrappers around ErrInvalidAttr.
This commit is contained in:
parent
31aa66a4a4
commit
8cdf2d3464
2 changed files with 6 additions and 7 deletions
|
@ -621,7 +621,7 @@ func TestVerifyTx(t *testing.T) {
|
|||
bc.config.P2PSigExtensions = true
|
||||
t.Run("NotYetValid", func(t *testing.T) {
|
||||
tx := getNVBTx(bc.blockHeight + 1)
|
||||
require.True(t, errors.Is(bc.VerifyTx(tx), ErrTxNotYetValid))
|
||||
require.True(t, errors.Is(bc.VerifyTx(tx), ErrInvalidAttribute))
|
||||
})
|
||||
t.Run("positive", func(t *testing.T) {
|
||||
tx := getNVBTx(bc.blockHeight)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue