Skip to content

Commit

Permalink
Merge pull request #3 from vczb/add_env
Browse files Browse the repository at this point in the history
Inject config at build time with .env files #2
  • Loading branch information
gsmachado authored Oct 27, 2021
2 parents 43e54df + 5ba7379 commit f74d9c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_MEME_CONTRACT_HASH=0x0f47f2176e1effd4cc5d47cf8dc7178ee30b108e
NEXT_PUBLIC_MEME_GOVERNANCE_CONTRACT_HASH=0x7fd53b2098e0891a02a8a2be2d71ac79f15188f2
3 changes: 1 addition & 2 deletions src/contracts/MemeContract.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { NeoLineN3Interface } from '../utils/neoline/neoline';
import { TypedValue } from '../utils/neoline/neoline-model';

const MEME_CONTRACT_HASH = `0x${'3298f0592ad719084518850eb7147cebb1564dd2'}`;
// const NO_OWNER_ZEROS_BASE64 = 'AAAAAAAAAAAAAAAAAAAAAAAAAAA=';
const MEME_CONTRACT_HASH = process.env.NEXT_PUBLIC_MEME_CONTRACT_HASH || '';

export type MemeContractState = {
memes: Meme[];
Expand Down
3 changes: 1 addition & 2 deletions src/contracts/MemeGovernanceContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { NeoLineN3Interface } from '../utils/neoline/neoline';
import { TypedValue } from '../utils/neoline/neoline-model';
import { fromStackItemToMeme, Meme } from './MemeContract';

const MEME_GOVERNANCE_CONTRACT_HASH = `0x${'7ab855b7a0d798e9a14221b5eca55a358c1f0573'}`;
// const NO_OWNER_ZEROS_BASE64 = 'AAAAAAAAAAAAAAAAAAAAAAAAAAA=';
const MEME_GOVERNANCE_CONTRACT_HASH = process.env.NEXT_PUBLIC_MEME_GOVERNANCE_CONTRACT_HASH || '';

export function fromStackToMemeGovernanceProposal(stack: TypedValue[]): MemeGovernanceProposal[] {
const proposals: MemeGovernanceProposal[] = [];
Expand Down

0 comments on commit f74d9c4

Please sign in to comment.