Skip to content

Commit 495519e

Browse files
committed
update example code
1 parent be9f7eb commit 495519e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ method on the `config` instance needs to be called, the `put` method returns the
6666

6767
```kotlin
6868

69-
FCL.config(
70-
appName = "FCLDemo",
69+
Fcl.config(
70+
appName = "FCLDemo",
7171
appIcon = "https://placekitten.com/g/200/200",
7272
location = "https://foo.com",
7373
walletNode = "https://fcl-http-post.vercel.app/api",
@@ -94,7 +94,7 @@ FCL.config(
9494
Calling this method will authenticate the current user via any wallet that supports FCL. Once called, FCL will initiate communication with the configured `authn` endpoint which lets the user select a wallet to authenticate with. Once the wallet provider has authenticated the user, FCL will set the values on the [current user](TODO) object for future use and authorization.
9595

9696
```kotlin
97-
FCL.authenticate(WalletProvider.DAPPER)
97+
Fcl.authenticate(WalletProvider.DAPPER)
9898
```
9999

100100

@@ -106,7 +106,7 @@ A **convenience method** that produces the needed authorization details for the
106106
**Note:** The default values for `proposer`, `payer`, and `authorizations` are already `fcl.authz` so there is no need to include these parameters, it is shown only for example purposes. See more on [signing roles](https://docs.onflow.org/concepts/accounts-and-keys/#signing-a-transaction).
107107

108108
```kotlin
109-
val tid = FCL.send {
109+
val tid = Fcl.send {
110110
script(
111111
"""
112112
transaction(test: String, testInt: Int) {

example/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies {
4242

4343
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
4444

45-
implementation 'com.github.Outblock:fcl-android:0.02'
45+
implementation 'com.github.Outblock:fcl-android:0.03'
4646

4747
testImplementation 'junit:junit:4.13.2'
4848
androidTestImplementation 'androidx.test.ext:junit:1.1.3'

fcl-android/src/main/java/io/outblock/fcl/Fcl.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object Fcl {
6262
*
6363
* Example
6464
* ```kotlin
65-
* val auth = FCL.authenticate(WalletProvider.BLOCTO)
65+
* val auth = Fcl.authenticate(WalletProvider.BLOCTO)
6666
* ```
6767
*
6868
* @param [provider] provider used for authentication
@@ -85,7 +85,7 @@ object Fcl {
8585
*
8686
* Example:
8787
* ```kotlin
88-
* val tid = FCL.mutate {
88+
* val tid = Fcl.mutate {
8989
* cadence("""
9090
* transaction(test: String, testInt: Int) {
9191
* prepare(signer: AuthAccount) {
@@ -115,7 +115,7 @@ object Fcl {
115115
* Query the chain: Send arbitrary Cadence scripts to the chain and receive back decoded values
116116
* Example
117117
* ```kotlin
118-
* val result = FCL.query {
118+
* val result = Fcl.query {
119119
* cadence(
120120
* """
121121
* pub fun main(a: Int, b: Int, addr: Address): Int {

0 commit comments

Comments
 (0)