I'm trying to upload the flipper contract to Beresheet (Edgeware testnet) but after submitting, I got this contract.NewContractNotFunded error and the extrinsic failed. I search the error on Google and found this description:
The newly created contract is below the subsistence threshold after executing its contructor. No contracts are allowed to exist below that threshold.
And this:
Subsistence Threshold
The runtime must make sure that any allowed dispatchable makes sure that the total_balance of the contract stays above Pallet::subsistence_threshold(). Otherwise users could clutter the storage with contracts.
What exactly the total_balance
of a contract is? How can I resolve this problem?
Side question: Is there anyway to call a smart contract in the polkadot.js UI?