Skip to content

Commit

Permalink
update consensus example and rename the transactions to singular case
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestofIranon committed Jan 25, 2020
1 parent f5ed5a0 commit bcfdb7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions examples/consensus_pub_sub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ func main() {

transactionId, err := hedera.NewConsensusTopicCreateTransaction().
SetTransactionMemo("sdk example create_pub_sub/main.go").
SetMaxTransactionFee(1000000000).
SetMaxTransactionFee(hedera.HbarFromTinybar(1000000000)).
Execute(client)

if err != nil {
panic(err)
}

transactionReceipt, err := transactionId.Receipt(client)
transactionReceipt, err := transactionId.GetReceipt(client)

if err != nil {
panic(err)
Expand Down Expand Up @@ -77,7 +77,7 @@ func main() {
panic(err)
}

_, err = id.Receipt(client)
_, err = id.GetReceipt(client)

if err != nil {
panic(err)
Expand Down

0 comments on commit bcfdb7c

Please sign in to comment.