Skip to content

Commit

Permalink
update fcl dev wallet to 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Jul 6, 2022
1 parent 161c355 commit 9827c59
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/manifoldco/promptui v0.9.0
github.com/onflow/cadence v0.24.6
github.com/onflow/cadence/languageserver v0.24.0
github.com/onflow/fcl-dev-wallet v0.4.5
github.com/onflow/fcl-dev-wallet v0.4.6
github.com/onflow/flow-cli/pkg/flowkit v0.0.0
github.com/onflow/flow-emulator v0.33.3
github.com/onflow/flow-go-sdk v0.26.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ github.com/onflow/cadence v0.24.6 h1:8iBoU42+R4m/hWwEEW1N5BGndmOFu3EtEyBXO5mO5II
github.com/onflow/cadence v0.24.6/go.mod h1:tIJiQ4RIq1WUTXdBewv8p+gNUETN93Eb7jSFedjqs5w=
github.com/onflow/cadence/languageserver v0.24.0 h1:LufBiLHJt9LmWhVVpxaLHO/yRvVsPNpKKEdo6ykyB/U=
github.com/onflow/cadence/languageserver v0.24.0/go.mod h1:5w1rJx0mvrto0EvWgZkbF4STuK2SggMyamwL1spTGlQ=
github.com/onflow/fcl-dev-wallet v0.4.5 h1:aIQpjy1J6FeMgke92Vb9a33F/OPt0o4pHRT2FDgDgko=
github.com/onflow/fcl-dev-wallet v0.4.5/go.mod h1:xWVEyGZgdDt4/+PLSlpuqhtzobjnWy5giceIGoErPzs=
github.com/onflow/fcl-dev-wallet v0.4.6 h1:Eaq9oPbP2TdcLDsu546BmzACux1jN2W51xzAz5T2D7k=
github.com/onflow/fcl-dev-wallet v0.4.6/go.mod h1:xWVEyGZgdDt4/+PLSlpuqhtzobjnWy5giceIGoErPzs=
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20220513155751-c4c1f8d59f83 h1:mpJirFu/JWMLV0IhKDZleVrVdN5B8QERV4gSXDef5bA=
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20220513155751-c4c1f8d59f83/go.mod h1:T6yhM+kWrFxiP6F3hh8lh9DcocHfmv48P4ITnjLhKSk=
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20220513155751-c4c1f8d59f83 h1:w4uXFTvjQmLtA/X50H4YXVlzbdsoL3vDI3Y86jtJOMM=
Expand Down
10 changes: 6 additions & 4 deletions internal/tools/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ func wallet(
key := service.Key().ToConfig()

conf := devWallet.Config{
Address: fmt.Sprintf("0x%s", service.Address().String()),
PrivateKey: strings.TrimPrefix(key.PrivateKey.String(), "0x"),
PublicKey: strings.TrimPrefix(key.PrivateKey.PublicKey().String(), "0x"),
AccessNode: walletFlags.Host,
Address: fmt.Sprintf("0x%s", service.Address().String()),
PrivateKey: strings.TrimPrefix(key.PrivateKey.String(), "0x"),
PublicKey: strings.TrimPrefix(key.PrivateKey.PublicKey().String(), "0x"),
AccessNode: walletFlags.Host,
AccountKeyID: "0",
BaseURL: "http://localhost:8701",
}

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

0 comments on commit 9827c59

Please sign in to comment.