mirror of
https://github.com/status-im/keycard-go.git
synced 2025-02-12 11:56:51 +00:00
use identifiers.KeycardDefaultInstanceIndex
This commit is contained in:
parent
0a248c09c1
commit
db9987efdd
@ -114,7 +114,7 @@ func (i *Installer) Delete() error {
|
||||
}
|
||||
|
||||
func (i *Installer) checkAppletAlreadyInstalled(cmdSet *globalplatform.CommandSet, overwriteApplet bool) error {
|
||||
keycardInstanceAID, err := identifiers.KeycardInstanceAID(1)
|
||||
keycardInstanceAID, err := identifiers.KeycardInstanceAID(identifiers.KeycardDefaultInstanceIndex)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -12,8 +12,6 @@ import (
|
||||
|
||||
type LoadingCallback = func(loadingBlock, totalBlocks int)
|
||||
|
||||
const defaultKeycardInstanceAID = 1
|
||||
|
||||
type CommandSet struct {
|
||||
c types.Channel
|
||||
session *Session
|
||||
@ -59,7 +57,7 @@ func (cs *CommandSet) OpenSecureChannel() error {
|
||||
}
|
||||
|
||||
func (cs *CommandSet) DeleteKeycardInstancesAndPackage() error {
|
||||
instanceAID, err := identifiers.KeycardInstanceAID(defaultKeycardInstanceAID)
|
||||
instanceAID, err := identifiers.KeycardInstanceAID(identifiers.KeycardDefaultInstanceIndex)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -114,7 +112,7 @@ func (cs *CommandSet) InstallNDEFApplet(ndefRecord []byte) error {
|
||||
}
|
||||
|
||||
func (cs *CommandSet) InstallKeycardApplet() error {
|
||||
instanceAID, err := identifiers.KeycardInstanceAID(defaultKeycardInstanceAID)
|
||||
instanceAID, err := identifiers.KeycardInstanceAID(identifiers.KeycardDefaultInstanceIndex)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user