Skip to content

Commit 7b59178

Browse files
authored
Merge pull request #556 from onflow/improvement/update-fcl-dev-wallet
Improvement/ update fcl dev wallet to 0.4.6
2 parents 161c355 + 9827c59 commit 7b59178

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/manifoldco/promptui v0.9.0
99
github.com/onflow/cadence v0.24.6
1010
github.com/onflow/cadence/languageserver v0.24.0
11-
github.com/onflow/fcl-dev-wallet v0.4.5
11+
github.com/onflow/fcl-dev-wallet v0.4.6
1212
github.com/onflow/flow-cli/pkg/flowkit v0.0.0
1313
github.com/onflow/flow-emulator v0.33.3
1414
github.com/onflow/flow-go-sdk v0.26.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ github.com/onflow/cadence v0.24.6 h1:8iBoU42+R4m/hWwEEW1N5BGndmOFu3EtEyBXO5mO5II
596596
github.com/onflow/cadence v0.24.6/go.mod h1:tIJiQ4RIq1WUTXdBewv8p+gNUETN93Eb7jSFedjqs5w=
597597
github.com/onflow/cadence/languageserver v0.24.0 h1:LufBiLHJt9LmWhVVpxaLHO/yRvVsPNpKKEdo6ykyB/U=
598598
github.com/onflow/cadence/languageserver v0.24.0/go.mod h1:5w1rJx0mvrto0EvWgZkbF4STuK2SggMyamwL1spTGlQ=
599-
github.com/onflow/fcl-dev-wallet v0.4.5 h1:aIQpjy1J6FeMgke92Vb9a33F/OPt0o4pHRT2FDgDgko=
600-
github.com/onflow/fcl-dev-wallet v0.4.5/go.mod h1:xWVEyGZgdDt4/+PLSlpuqhtzobjnWy5giceIGoErPzs=
599+
github.com/onflow/fcl-dev-wallet v0.4.6 h1:Eaq9oPbP2TdcLDsu546BmzACux1jN2W51xzAz5T2D7k=
600+
github.com/onflow/fcl-dev-wallet v0.4.6/go.mod h1:xWVEyGZgdDt4/+PLSlpuqhtzobjnWy5giceIGoErPzs=
601601
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20220513155751-c4c1f8d59f83 h1:mpJirFu/JWMLV0IhKDZleVrVdN5B8QERV4gSXDef5bA=
602602
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20220513155751-c4c1f8d59f83/go.mod h1:T6yhM+kWrFxiP6F3hh8lh9DcocHfmv48P4ITnjLhKSk=
603603
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20220513155751-c4c1f8d59f83 h1:w4uXFTvjQmLtA/X50H4YXVlzbdsoL3vDI3Y86jtJOMM=

internal/tools/wallet.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ func wallet(
6464
key := service.Key().ToConfig()
6565

6666
conf := devWallet.Config{
67-
Address: fmt.Sprintf("0x%s", service.Address().String()),
68-
PrivateKey: strings.TrimPrefix(key.PrivateKey.String(), "0x"),
69-
PublicKey: strings.TrimPrefix(key.PrivateKey.PublicKey().String(), "0x"),
70-
AccessNode: walletFlags.Host,
67+
Address: fmt.Sprintf("0x%s", service.Address().String()),
68+
PrivateKey: strings.TrimPrefix(key.PrivateKey.String(), "0x"),
69+
PublicKey: strings.TrimPrefix(key.PrivateKey.PublicKey().String(), "0x"),
70+
AccessNode: walletFlags.Host,
71+
AccountKeyID: "0",
72+
BaseURL: "http://localhost:8701",
7173
}
7274

7375
srv, err := devWallet.NewHTTPServer(walletFlags.Port, &conf)

0 commit comments

Comments
 (0)