Skip to content

Commit

Permalink
feat: fix starframework path error (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
yubing744 committed Jun 7, 2022
1 parent 120944b commit ed879a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Stc/Issue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export default function Issue() {
const git = new Git(wasmfs)
const tokenPackage = new TokenPackage(wasmfs, accountAddress, tokenName, parseInt(tokenPrecision), parseInt(initMint))

await git.download("/data/starcoin-framework.zip", "/workspace/starcoin-framework")
const starcoinFrameworkURL = process.env.NODE_ENV === "production" ? "/dapps/data/starcoin-framework.zip" : "/data/starcoin-framework.zip"
await git.download(starcoinFrameworkURL, "/workspace/starcoin-framework")
tokenPackage.export("/workspace/my-token")

const mp = new MovePackage(wasmfs, {
Expand Down

0 comments on commit ed879a3

Please sign in to comment.