Skip to content

Commit

Permalink
Remove unnecessary environment variables for contract addresses in fa…
Browse files Browse the repository at this point in the history
…vour of config().load()
  • Loading branch information
jribbink committed Jan 11, 2024
1 parent 4121feb commit 4d346d5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# We recommend to use the service account defined in the flow.json file your emulator is using.

FLOW_INIT_ACCOUNTS=0
CONTRACT_FUNGIBLE_TOKEN=0xee82856bf20e2aa6
CONTRACT_FLOW_TOKEN=0x0ae53cb6e3f42a79
CONTRACT_FCL_CRYPTO=0xf8d6e0586b0a20c7
FLOW_AVATAR_URL=https://avatars.onflow.org/avatar/

# EMULATOR REST API ENDPOINT
Expand Down
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# We recommend to use the service account definied in the flow.json file your emulator is using.

FLOW_INIT_ACCOUNTS=0
CONTRACT_FUNGIBLE_TOKEN=0xee82856bf20e2aa6
CONTRACT_FLOW_TOKEN=0x0ae53cb6e3f42a79
CONTRACT_FCL_CRYPTO=0xf8d6e0586b0a20c7
FLOW_AVATAR_URL=https://avatars.onflow.org/avatar/

# EMULATOR REST API ENDPOINT
Expand Down
6 changes: 0 additions & 6 deletions contexts/ConfigContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import {getBaseUrl} from "src/utils"

interface RuntimeConfig {
flowAvatarUrl: string
contractFungibleToken: string
contractFlowToken: string
contractFCLCrypto: string
flowAccountAddress: string
flowAccountPrivateKey: string
flowAccountPublicKey: string
Expand All @@ -19,9 +16,6 @@ interface RuntimeConfig {

const defaultConfig = {
flowAvatarUrl: process.env.flowAvatarUrl || "",
contractFungibleToken: process.env.contractFungibleToken || "",
contractFlowToken: process.env.contractFlowToken || "",
contractFCLCrypto: process.env.contractFCLCrypto || "",
flowAccountAddress: process.env.flowAccountAddress || "",
flowAccountPrivateKey: process.env.flowAccountPrivateKey || "",
flowAccountPublicKey: process.env.flowAccountPublicKey || "",
Expand Down
3 changes: 0 additions & 3 deletions go/wallet/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# We recommend to use the service account defined in the flow.json file your emulator is using.

FLOW_INIT_ACCOUNTS=0
CONTRACT_FUNGIBLE_TOKEN=0xee82856bf20e2aa6
CONTRACT_FLOW_TOKEN=0x0ae53cb6e3f42a79
CONTRACT_FCL_CRYPTO=0xf8d6e0586b0a20c7
FLOW_AVATAR_URL=https://avatars.onflow.org/avatar/

# EMULATOR REST API ENDPOINT
Expand Down
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,5 @@ module.exports = {
flowAccountPublicKey: process.env.FLOW_ACCOUNT_PUBLIC_KEY,
flowAccessNode: process.env.FLOW_ACCESS_NODE,
flowAvatarUrl: process.env.FLOW_AVATAR_URL,
contractFungibleToken: process.env.CONTRACT_FUNGIBLE_TOKEN,
contractFlowToken: process.env.CONTRACT_FLOW_TOKEN,
contractFCLCrypto: process.env.CONTRACT_FCL_CRYPTO,
},
}

0 comments on commit 4d346d5

Please sign in to comment.