Skip to content

Commit

Permalink
Update sample code in README.md (#64)
Browse files Browse the repository at this point in the history
* Update sample code in README.md
  • Loading branch information
koseoyoung authored and Yutong Pei committed Jul 22, 2019
1 parent 2a267bc commit 5ec9112
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@ package main
import (
"log"
"context"
"fmt"
"github.com/iotexproject/iotex-antenna-go/v2/account"
"github.com/iotexproject/iotex-proto/golang/iotexapi"
"github.com/iotexproject/iotex-antenna-go/v2/iotex"
"github.com/iotexproject/iotex-address/address"
"github.com/iotexproject/iotex-antenna-go/iotex"
)
const (
Expand All @@ -44,7 +51,7 @@ const (
func main() {
https://github.com/iotexproject/iotex-tube
// Create grpc connection
conn, err := NewDefaultGRPCConn(host)
conn, err := iotex.NewDefaultGRPCConn(host)
if err != nil {
log.Fatal(err)
}
Expand All @@ -57,7 +64,7 @@ https://github.com/iotexproject/iotex-tube
}
// create client
c := NewAuthedClient(iotexapi.NewAPIServiceClient(conn), acc)
c := iotex.NewAuthedClient(iotexapi.NewAPIServiceClient(conn), acc)
// transfer
to, err := address.FromString("to...")
Expand Down

0 comments on commit 5ec9112

Please sign in to comment.