Skip to content

updated for coco v0.4.0 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
406 changes: 231 additions & 175 deletions AssetCreator/client/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AssetCreator/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"antd": "^5.11.5",
"js-moi-sdk": "^0.3.0-rc3",
"js-moi-sdk": "^0.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.1",
Expand Down
6 changes: 5 additions & 1 deletion AssetCreator/client/src/components/AssetFactory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ const AssetFactory = ({ wallet, showConnectModal }) => {
name="supply"
/>
</div>
<button className="btn btn--grey" onClick={createAsset} disabled={interacting}>
<button
className="btn btn--grey"
onClick={createAsset}
disabled={interacting || !supply || !symbol}
>
<span style={{ marginRight: "10px" }}>Create Asset</span>
<Loader color={"#374151"} size={20} loading={interacting} />
</button>
Expand Down
6 changes: 5 additions & 1 deletion AssetCreator/client/src/components/AssetManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ const AssetManager = ({ wallet, showConnectModal }) => {
name="amount"
/>
</div>
<button className="btn btn--grey" onClick={transferAsset} disabled={interacting}>
<button
className="btn btn--grey"
onClick={transferAsset}
disabled={interacting || !receiver || !amount || !assetId}
>
<span style={{ marginRight: "10px" }}>Transfer Asset</span>
<Loader color={"#374151"} size={20} loading={interacting} />
</button>
Expand Down
Loading