Skip to content

Commit

Permalink
fix build after #4979 (#5032)
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy authored Jan 19, 2023
1 parent a9fe2c7 commit e01e374
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/boxkey/convertBoxKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import (
"flag"
"fmt"

"github.com/algorand/go-algorand/data/basics"
"github.com/algorand/go-algorand/data/transactions/logic"
"github.com/algorand/avm-abi/apps"
)

func main() {
Expand All @@ -43,7 +42,7 @@ func main() {
fmt.Println("invalid key value")
return
}
key := logic.MakeBoxKey(basics.AppIndex(appIdx), string(nameBytes))
key := apps.MakeBoxKey(appIdx, string(nameBytes))
fmt.Println(base64.StdEncoding.EncodeToString([]byte(key)))
fmt.Println(hex.EncodeToString([]byte(key)))
}

0 comments on commit e01e374

Please sign in to comment.