Skip to content

Commit

Permalink
Push master @jackzampolin: fix faucet send
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzampolin committed Apr 20, 2020
1 parent 569d8d7 commit 756ef0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions .json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"key":"","chain-id":"","rpc-addr":"http://:26657","account-prefix":"cosmos","gas":200000,"gas-prices":"0.025","default-denom":"","trusting-period":"330h"}
3 changes: 0 additions & 3 deletions relayer/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ func (src *Chain) SendMsgWithKey(datagram sdk.Msg, keyName string) (res sdk.TxRe

// BuildAndSignTxWithKey allows the user to specify which relayer key will sign the message
func (src *Chain) BuildAndSignTxWithKey(datagram []sdk.Msg, keyName string) ([]byte, error) {
// Set sdk config to use custom Bech32 account prefix
defer src.UseSDKContext()()

// Fetch account and sequence numbers for the account
info, err := src.Keybase.Key(keyName)
Expand Down Expand Up @@ -76,7 +74,6 @@ func (src *Chain) FaucetHandler(fromKey sdk.AccAddress, amount sdk.Coin) func(w

func (src *Chain) faucetSend(fromAddr, toAddr sdk.AccAddress, amount sdk.Coin) error {
// Set sdk config to use custom Bech32 account prefix
defer src.UseSDKContext()()

info, err := src.Keybase.KeyByAddress(fromAddr)
if err != nil {
Expand Down

0 comments on commit 756ef0b

Please sign in to comment.