Skip to content

Commit

Permalink
Rename sorting method imported from avalanchego (#272)
Browse files Browse the repository at this point in the history
* update avalanchego version

* rename sorting method import

* update avalanchego dep

* fix sorting method name

* fix sorting method name for real
  • Loading branch information
Dan Laine authored Jul 18, 2023
1 parent 734c238 commit c6c0b1d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.19

require (
github.com/VictoriaMetrics/fastcache v1.10.0
github.com/ava-labs/avalanchego v1.10.4
github.com/ava-labs/avalanchego v1.10.5-rc.1
github.com/cespare/cp v0.1.0
github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811
github.com/davecgh/go-spew v1.1.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/ava-labs/avalanchego v1.10.4 h1:wGldIq/zn7DTE8TvsBKq6UjyICXb9HY5joNOX73ovEU=
github.com/ava-labs/avalanchego v1.10.4/go.mod h1:lQNBWn4f27MWJGH9Jj1zOX1GlJDeHofMG/TBRaqSNSg=
github.com/ava-labs/avalanchego v1.10.5-rc.1 h1:hFgEI2y7pYUE9F7P6SsMJDpPV5Qm2faoCHIfswcYu3A=
github.com/ava-labs/avalanchego v1.10.5-rc.1/go.mod h1:azK88lcF5jwcPSp//RKUh2VncmrZZUrKu998C7no4Ys=
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
Expand Down
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.IsSortedAndUniqueSortable(utx.Ins) {
if rules.IsApricotPhase1 && !utils.IsSortedAndUnique(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.IsSortedAndUniqueSortable(utx.ImportedInputs) {
if !utils.IsSortedAndUnique(utx.ImportedInputs) {
return errInputsNotSortedUnique
}

if rules.IsApricotPhase2 {
if !utils.IsSortedAndUniqueSortable(utx.Outs) {
if !utils.IsSortedAndUnique(utx.Outs) {
return errOutputsNotSortedUnique
}
} else if rules.IsApricotPhase1 {
Expand Down
2 changes: 1 addition & 1 deletion scripts/versions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

# Don't export them as they're used in the context of other calls
avalanche_version=${AVALANCHE_VERSION:-'v1.10.4'}
avalanche_version=${AVALANCHE_VERSION:-'v1.10.5-rc.1'}

0 comments on commit c6c0b1d

Please sign in to comment.