Withdraw GAS not working #29

Closed
opened 2025-12-28 18:06:42 +00:00 by sami · 11 comments
Owner

Originally created by @mike-petrov on GitHub (Sep 11, 2022).

Originally assigned to: @mike-petrov on GitHub.

Withdraw GAS from NeoFS get a error: Error: Failed to get system fee. Error: Script execution failed. ExecutionEngine state = FAULT. An unhandled exception was thrown. out of max amount limit

Originally created by @mike-petrov on GitHub (Sep 11, 2022). Originally assigned to: @mike-petrov on GitHub. Withdraw GAS from NeoFS get a error: `Error: Failed to get system fee. Error: Script execution failed. ExecutionEngine state = FAULT. An unhandled exception was thrown. out of max amount limit`
sami 2025-12-28 18:06:42 +00:00
  • closed this issue
  • added the
    bug
    U3
    labels
Author
Owner

@KirillovDenis commented on GitHub (Sep 13, 2022):

Check deposit also

@KirillovDenis commented on GitHub (Sep 13, 2022): Check deposit also
Author
Owner

@alexvanin commented on GitHub (Sep 15, 2022):

It takes about 7.0 GAS as a fee (due to lack of notary support in main chain). Try to withdraw with 10+ GAS on a testnet account (not NeoFS account)

@alexvanin commented on GitHub (Sep 15, 2022): It takes about 7.0 GAS as a fee (due to lack of notary support in main chain). Try to withdraw with 10+ GAS on a testnet account (not NeoFS account)
Author
Owner

@alexvanin commented on GitHub (Sep 15, 2022):

@masterSplinter01 can you check withdraw directly from neo-go

  1. Make deposit
  2. Have 10+ GAS on wallet
  3. Make withdraw

Check in on T5 testnet.

If not successful, try it on dev-env.

@alexvanin commented on GitHub (Sep 15, 2022): @masterSplinter01 can you check withdraw directly from neo-go 1) Make deposit 2) Have 10+ GAS on wallet 3) Make withdraw Check in on T5 testnet. If not successful, try it on dev-env.
Author
Owner

@mike-petrov commented on GitHub (Sep 15, 2022):

In case of having 10+ gas, it's also get an error. I tried by neofs-panel.

image image
@mike-petrov commented on GitHub (Sep 15, 2022): In case of having 10+ gas, it's also get an error. I tried by neofs-panel. <img width="1357" alt="image" src="https://user-images.githubusercontent.com/32885629/190407082-ce951db0-7907-4cc8-9fb7-9923481f91f0.png"> <img width="1275" alt="image" src="https://user-images.githubusercontent.com/32885629/190407103-7ff884d4-aaea-41ae-b68d-4a2976feda49.png">
Author
Owner

@masterSplinter01 commented on GitHub (Sep 20, 2022):

We need to specify a signature scope -- contracts which will be able to use account signature (in our case, NeoFS and GAS native contracts). By default, the scope is None -- no contracts are allowed to use account signature.
E.g. in dev-env

$ neo-go contract invokefunction -r http://main-chain.neofs.devenv:30333  -w ~/work/neofs-dev-env/wallets/wallet.json 913c08e0faa2b94516ac7effaea7a9363e492228  withdraw NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM 2 -- NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM:CustomContracts:0xd2a4cff31913016155e38e474a2c06d08be276cf:913c08e0faa2b94516ac7effaea7a9363e492228      

Network fee: 0.0124552
System fee: 0.2025998
Total fee: 0.215055
Relay transaction (y|N)> y
Sent invocation transaction ea8d306a6a0611bea75cdcc60dd48879c0ca8f319ece31a4bb01988d135149ee

:CustomContracts -- a scope (more details here),
0xd2a4cff31913016155e38e474a2c06d08be276cf - hash script of GAS contract,
913c08e0faa2b94516ac7effaea7a9363e492228 - hash script of NeoFS contract.
List of contracts must be separated by ':'.
Also, more information about syntax:

$ neo-go contract testinvokefunction --help 
@masterSplinter01 commented on GitHub (Sep 20, 2022): We need to specify a signature scope -- contracts which will be able to use account signature (in our case, `NeoFS` and `GAS` native contracts). By default, the scope is `None` -- no contracts are allowed to use account signature. E.g. in `dev-env` ``` $ neo-go contract invokefunction -r http://main-chain.neofs.devenv:30333 -w ~/work/neofs-dev-env/wallets/wallet.json 913c08e0faa2b94516ac7effaea7a9363e492228 withdraw NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM 2 -- NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM:CustomContracts:0xd2a4cff31913016155e38e474a2c06d08be276cf:913c08e0faa2b94516ac7effaea7a9363e492228 Network fee: 0.0124552 System fee: 0.2025998 Total fee: 0.215055 Relay transaction (y|N)> y Sent invocation transaction ea8d306a6a0611bea75cdcc60dd48879c0ca8f319ece31a4bb01988d135149ee ``` `:CustomContracts` -- a scope (more details [here](https://neospcc.medium.com/thou-shalt-check-their-witnesses-485d2bf8375d)), `0xd2a4cff31913016155e38e474a2c06d08be276cf` - hash script of `GAS` contract, `913c08e0faa2b94516ac7effaea7a9363e492228` - hash script of `NeoFS` contract. List of contracts must be separated by ':'. Also, more information about syntax: ``` $ neo-go contract testinvokefunction --help ```
Author
Owner

@masterSplinter01 commented on GitHub (Oct 24, 2022):

@mike-petrov Could you check transfer one more time? I've tried it after redeployment and the transfer passed successfully.

@masterSplinter01 commented on GitHub (Oct 24, 2022): @mike-petrov Could you check transfer one more time? I've tried it after redeployment and the transfer passed successfully.
Author
Owner

@mike-petrov commented on GitHub (Oct 24, 2022):

I still get this error. I tried in T5:

  • different scopes: CalledByEntry / CustomContracts
  • different amounts
  • different contracts

Problem still persists.

@mike-petrov commented on GitHub (Oct 24, 2022): I still get this error. I tried in T5: - different scopes: CalledByEntry / CustomContracts - different amounts - different contracts Problem still persists.
Author
Owner

@alexvanin commented on GitHub (Oct 25, 2022):

@mike-petrov Can we try Global scope?

@alexvanin commented on GitHub (Oct 25, 2022): @mike-petrov Can we try `Global` scope?
Author
Owner

@mike-petrov commented on GitHub (Oct 25, 2022):

Also does not work:

scopes: 128, // WitnessScope.Global
@mike-petrov commented on GitHub (Oct 25, 2022): Also does not work: ``` scopes: 128, // WitnessScope.Global ```
Author
Owner

@mike-petrov commented on GitHub (Oct 27, 2022):

We have withdrawQuantity * 100000000 as a parameter withdraw operation for invokeFunction, but if we remove the multiplier withdraw operation is working with scopes: WitnessScope.Global and WitnessScope.CustomContracts. But in this case the withdrawal takes a very large fee (~7 GAS).

@mike-petrov commented on GitHub (Oct 27, 2022): We have `withdrawQuantity * 100000000` as a parameter withdraw operation for invokeFunction, but if we remove the multiplier withdraw operation is working with scopes: WitnessScope.Global and WitnessScope.CustomContracts. But in this case the withdrawal takes a very large fee (~7 GAS).
Author
Owner

@alexvanin commented on GitHub (Nov 8, 2022):

Aside of having correct withdraw quantity, we should set correct scope. Right now panel does not use correct scope. Should be fixed.

@alexvanin commented on GitHub (Nov 8, 2022): Aside of having correct withdraw quantity, we should set correct scope. Right now panel does not use correct scope. Should be fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/panel-fs-neo-org#29
No description provided.