Skip to content

Commit

Permalink
improve as config
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof authored and peterjah committed Dec 13, 2024
1 parent 4bf737b commit 97547fd
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 73 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
7 changes: 4 additions & 3 deletions frontend/package-lock.json

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

2 changes: 1 addition & 1 deletion frontend/src/components/MNSManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function MNSManagement(props: MNSManagementProps) {
useEffect(() => {
if (!connectedAccount || !massaClient || listSpinning) return;
getUserEntryList({ address: connectedAccount.address() });
}, [connectedAccount, massaClient]);
}, [connectedAccount, massaClient, listSpinning, getUserEntryList]);
return (
<div className={customClass}>
{!connected ? (
Expand Down
16 changes: 4 additions & 12 deletions smart-contract/asconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
{
"targets": {
"debug": {
"sourceMap": true,
"debug": true,
"transform": ["@massalabs/as-transformer"]
},
"release": {
"sourceMap": true,
"optimizeLevel": 3,
"shrinkLevel": 0,
"converge": false,
"shrinkLevel": 3,
"converge": true,
"noAssert": false,
"transform": ["@massalabs/as-transformer"]
"exportRuntime": true,
"bindings": false
}
},
"options": {
"exportRuntime": true,
"bindings": "esm"
}
}
55 changes: 0 additions & 55 deletions smart-contract/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 smart-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
"devDependencies": {
"@as-pect/cli": "^8.1.0",
"@assemblyscript/loader": "^0.27.2",
"@massalabs/as-transformer": "^0.3.2",
"@massalabs/as-types": "^2.0.0",
"@massalabs/eslint-config": "^0.0.10",
"@massalabs/massa-as-sdk": "^2.5.5-dev",
"@massalabs/massa-sc-compiler": "^0.1.0",
"@massalabs/massa-sc-deployer": "^1.3.0",
"@massalabs/massa-web3": "^4.0.1",
"@massalabs/sc-standards": "0.1.2-dev.20240404142230",
"@massalabs/prettier-config-as": "^0.0.2",
"@massalabs/sc-standards": "0.1.2-dev.20240404142230",
"@protobuf-ts/plugin": "^2.9.1",
"@types/node": "^18.11.10",
"as-bignum": "^0.2.40",
Expand Down

0 comments on commit 97547fd

Please sign in to comment.