Skip to content

Commit

Permalink
fix sorting method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine committed Jul 18, 2023
1 parent 8c2f016 commit 07eaa4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/evm/export_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (utx *UnsignedExportTx) Verify(
if !avax.IsSortedTransferableOutputs(utx.ExportedOutputs, Codec) {
return errOutputsNotSorted
}
if rules.IsApricotPhase1 && !utils.IsSortedAndUnique(utx.Ins) {
if rules.IsApricotPhase1 && !utils.IsSortedAndUniqueSortable(utx.Ins) {
return errInputsNotSortedUnique
}

Expand Down
4 changes: 2 additions & 2 deletions plugin/evm/import_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ func (utx *UnsignedImportTx) Verify(
return errImportNonAVAXInputBanff
}
}
if !utils.IsSortedAndUnique(utx.ImportedInputs) {
if !utils.IsSortedAndUniqueSortable(utx.ImportedInputs) {
return errInputsNotSortedUnique
}

if rules.IsApricotPhase2 {
if !utils.IsSortedAndUnique(utx.Outs) {
if !utils.IsSortedAndUniqueSortable(utx.Outs) {
return errOutputsNotSortedUnique
}
} else if rules.IsApricotPhase1 {
Expand Down

0 comments on commit 07eaa4e

Please sign in to comment.