Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 2206eda

Browse files
authored
Use sansPrefix/withPrefix helpers from @onflow/fcl instead, remove unnecessary use of these helpers in authz function (#156)
1 parent 962b535 commit 2206eda

File tree

9 files changed

+211
-63
lines changed

9 files changed

+211
-63
lines changed

.changeset/tough-swans-itch.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@onflow/flow-js-testing": patch
3+
---
4+
5+
Bumped @onflow/fcl to ^1.2.1-alpha.0

package-lock.json

+199-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
]
4949
},
5050
"dependencies": {
51-
"@onflow/config": "^1.0.3-alpha.0",
52-
"@onflow/fcl": "^1.1.1-alpha.1",
51+
"@onflow/fcl": "^1.2.1-alpha.0",
5352
"@onflow/fcl-config": "^0.0.1",
5453
"@onflow/flow-cadut": "0.2.0-alpha.8",
5554
"@onflow/types": "^1.0.3-alpha.0",

src/address.js

-27
This file was deleted.

src/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
import {flowConfig} from "@onflow/fcl-config"
20-
import {config} from "@onflow/config"
20+
import {config} from "@onflow/fcl"
2121

2222
/**
2323
* Get value from provided scope and path.

src/crypto.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19-
import * as fcl from "@onflow/fcl"
2019
import * as rlp from "rlp"
2120
import {ec as EC} from "elliptic"
22-
import {config} from "@onflow/config"
21+
import {config} from "@onflow/fcl"
2322
import {isObject, isString} from "./utils"
2423

2524
import {sha3_256} from "js-sha3"
@@ -136,8 +135,7 @@ export const authorization =
136135

137136
return {
138137
...account,
139-
tempId: `${addr}-${keyId}`,
140-
addr: fcl.sansPrefix(addr),
138+
addr,
141139
keyId,
142140
signingFunction,
143141
}

src/emulator.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
import {send, build, getBlock, decode} from "@onflow/fcl"
19-
import {config} from "@onflow/config"
18+
import {send, build, getBlock, decode, config} from "@onflow/fcl"
2019
import {getAvailablePorts} from "./utils"
2120

2221
const {spawn} = require("child_process")

src/file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import fs from "fs"
2020
import path from "path"
21-
import {config} from "@onflow/config"
21+
import {config} from "@onflow/fcl"
2222

2323
import {replaceImportAddresses} from "./imports"
2424
import {isObject} from "./utils"

0 commit comments

Comments
 (0)