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

Use sansPrefix/withPrefix helpers from @onflow/fcl instead, remove unnecessary use of these helpers in authz function #156

Merged
merged 6 commits into from
Aug 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tough-swans-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@onflow/flow-js-testing": patch
---

Bumped @onflow/fcl to ^1.2.1-alpha.0
223 changes: 199 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
]
},
"dependencies": {
"@onflow/config": "^1.0.3-alpha.0",
"@onflow/fcl": "^1.1.1-alpha.1",
"@onflow/fcl": "^1.2.1-alpha.0",
"@onflow/fcl-config": "^0.0.1",
"@onflow/flow-cadut": "0.2.0-alpha.8",
"@onflow/types": "^1.0.3-alpha.0",
Expand Down
27 changes: 0 additions & 27 deletions src/address.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

import {flowConfig} from "@onflow/fcl-config"
import {config} from "@onflow/config"
import {config} from "@onflow/fcl"

/**
* Get value from provided scope and path.
Expand Down
6 changes: 2 additions & 4 deletions src/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
* limitations under the License.
*/

import * as fcl from "@onflow/fcl"
import * as rlp from "rlp"
import {ec as EC} from "elliptic"
import {config} from "@onflow/config"
import {config} from "@onflow/fcl"
import {isObject, isString} from "./utils"

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

return {
...account,
tempId: `${addr}-${keyId}`,
addr: fcl.sansPrefix(addr),
addr,
jribbink marked this conversation as resolved.
Show resolved Hide resolved
keyId,
signingFunction,
}
Expand Down
3 changes: 1 addition & 2 deletions src/emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {send, build, getBlock, decode} from "@onflow/fcl"
import {config} from "@onflow/config"
import {send, build, getBlock, decode, config} from "@onflow/fcl"
import {getAvailablePorts} from "./utils"

const {spawn} = require("child_process")
Expand Down
2 changes: 1 addition & 1 deletion src/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import fs from "fs"
import path from "path"
import {config} from "@onflow/config"
import {config} from "@onflow/fcl"

import {replaceImportAddresses} from "./imports"
import {isObject} from "./utils"
Expand Down
Loading