@@ -13,9 +13,15 @@ import (
1313 "github.com/onflow/flow-go-sdk/access/grpc"
1414 "github.com/onflow/flow-go-sdk/crypto"
1515 "github.com/onflow/flow-go-sdk/templates"
16+ "github.com/onflow/flow-go/fvm/systemcontracts"
17+ flowGo "github.com/onflow/flow-go/model/flow"
1618 "golang.org/x/exp/rand"
1719)
1820
21+ var sc = systemcontracts .SystemContractsForChain (flowGo .Emulator )
22+ var ftAddress = sc .FungibleToken .Address .HexWithPrefix ()
23+ var flowAddress = sc .FlowToken .Address .HexWithPrefix ()
24+
1925// RunCreateMultiKeyAccount command creates a new account with multiple keys, which are saved to keys.json for later
2026// use with running the gateway in a key-rotation mode (used with --coa-key-file flag).
2127func RunCreateMultiKeyAccount () {
@@ -27,8 +33,8 @@ func RunCreateMultiKeyAccount() {
2733 flag .IntVar (& keyCount , "key-count" , 20 , "how many keys you want to create and assign to account" )
2834 flag .StringVar (& keyFlag , "signer-key" , "" , "signer key used to create the new account" )
2935 flag .StringVar (& addressFlag , "signer-address" , "" , "signer address used to create new account" )
30- flag .StringVar (& ftFlag , "ft-address" , "0xee82856bf20e2aa6" , "address of fungible token contract" )
31- flag .StringVar (& flowFlag , "flow-token-address" , "0x0ae53cb6e3f42a79" , "address of flow token contract" )
36+ flag .StringVar (& ftFlag , "ft-address" , ftAddress , "address of fungible token contract" )
37+ flag .StringVar (& flowFlag , "flow-token-address" , flowAddress , "address of flow token contract" )
3238 flag .StringVar (& hostFlag , "access-node-grpc-host" , "localhost:3569" , "host to the flow access node gRPC API" )
3339
3440 flag .Parse ()
0 commit comments