-
Notifications
You must be signed in to change notification settings - Fork 8
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
Deleting a contract that is in GracPeriod
is not handled correctly
#463
Comments
this error is happening while deleting the keys the client stucks on that error which leads to the btn to be loading forever,
the callback is never called, and there is some logs yarn run v1.22.19
$ /home/kassem/tfgrid-sdk-ts/node_modules/.bin/ts-node --project tsconfig-node.json scripts/name.ts
@polkadot/util has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
cjs 10.4.2 node_modules/@polkadot/util/cjs
cjs 9.7.2 node_modules/@polkadot/rpc-provider/node_modules/@polkadot/util/cjs
Credentials not all found in env variables. Loading all credentials from default config.json...
2023-06-05 16:31:06 API/INIT: RPC methods not decorated: transaction_unstabale_submitAndWatch, transaction_unstable_unwatch
2023-06-05 16:31:06 API/INIT: Not decorating runtime apis without matching versions: TransactionPaymentApi/2 (1 known)
Validation succeed
Lock acquired
2023-06-05 16:31:08 RPC-CORE: submitAndWatchExtrinsic(extrinsic: Extrinsic): ExtrinsicStatus:: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
2023-06-05 16:31:08 DRR: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
2023-06-05 16:31:08 RPC-CORE: submitAndWatchExtrinsic(extrinsic: Extrinsic): ExtrinsicStatus:: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
/home/kassem/tfgrid-sdk-ts/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:34
throw new _error.default(`${code}: ${message}${formatErrorData(data)}`, code, data);
^
RpcError: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
at checkError (/home/kassem/tfgrid-sdk-ts/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:34:11)
at RpcCoder.decodeResponse (/home/kassem/tfgrid-sdk-ts/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:54:5)
at WsProvider.value (/home/kassem/tfgrid-sdk-ts/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:297:90)
at W3CWebSocket.value [as onmessage] (/home/kassem/tfgrid-sdk-ts/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:277:153)
at W3CWebSocket._dispatchEvent [as dispatchEvent] (/home/kassem/tfgrid-sdk-ts/node_modules/yaeti/lib/EventTarget.js:107:17)
at W3CWebSocket.onMessage (/home/kassem/tfgrid-sdk-ts/node_modules/websocket/lib/W3CWebSocket.js:234:14)
at WebSocketConnection.<anonymous> (/home/kassem/tfgrid-sdk-ts/node_modules/websocket/lib/W3CWebSocket.js:205:19)
at WebSocketConnection.emit (node:events:513:28)
at WebSocketConnection.emit (node:domain:489:12)
at WebSocketConnection.processFrame (/home/kassem/tfgrid-sdk-ts/node_modules/websocket/lib/WebSocketConnection.js:554:26)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
i tried to delete a contract in grace period and it doesn't get stuck anymore. and it looked like it was deleted but when i navigated to the deployments page then to the contracts page it appeared again. but after reloading the page it disappeared from the list. screencast-from-12-06-23-14-34-01_SW8GS9HK.mp4also another question related to this. is it allowed to delete contracts while they're in grace period? |
@mohamedamer453 This is normal; deleting contracts may take a while, we add a warning before deleting to inform the user about that |
ok great will close it then. Thanks for the clarification. |
Description
Deleting a contract that is in
GracPeriod
is not handled correctly.An error appears in the console mentioning that the fees to delete the contract is not enough but in the ui there's no error and it just keeps loading forever.
Expected Behavior
The contract shouldn't be deleted, and a clear error should be displayed to the user.
Steps to reproduce
GracePeriod
The text was updated successfully, but these errors were encountered: