CPChain / chain

Mirror of https://bitbucket.org/cpchain/chain
GNU General Public License v3.0
51 stars 10 forks source link

With the current Wallet version its not possible to call a fallback function in a SC #82

Closed Mateus224 closed 5 years ago

Mateus224 commented 5 years ago

Hi there,

Is your feature request related to the chain, the wallet, the console, the explorer, or other aspect?

Wallet

Is your feature request related to a problem? Please describe.

I m writing a SC for the community. The SC has a fallback function to make it easier for everyone to execute the SC. But the fallback function needs more Gas as an normal transaction. So i checked your Wallet video on youtube if there is is a possibility to adjustable how much Gas will be sent. But to my regret I see that the App only displayed how much gas is consumed and that is not adjustable. I hope that this can be improved, because I probably will not be the only one who writes an SC who wants to use a fallback function in his SC.

https://www.youtube.com/watch?v=Ol5rwIrp3CA

Describe the solution you'd like Make the Gas adjustable by sending CPCs. And just write a suggestion how much Gas is needed for a normal transaction.

alex031029 commented 5 years ago

I have asked my teammate in charge of wallet, he said at the current stage, the gas limit cannot be adjusted. Usually, wallet is used for normal transaction, not for smart contract. Therefore, we don't design a mechanism in wallet to adjust the gas.

But in SC, you can set whatever the gas you want. I didn't really get your point, in what situation you require an adjustable gas in wallet?