Unanswered Questions
28 questions with no answers
0
votes
0
answers
16
views
Help with indexing smart contract events
Was having a hard time with subxt and indexing smart contract events hence asking for help
I want to look for an event on a specific smart contract i deployed
can someone help provide some existing ...
0
votes
0
answers
12
views
Getting this error on deploying evm smart contracts "gas required exceeds allowance 0"
I've integrated frontier evm-v1.11.0 into both L1 substrate and L0 rococo chains. While account-to-account transfers work smoothly, I'm encountering an issue when trying to deploy a smart contract via ...
0
votes
0
answers
19
views
How to Use sin() and cos() in ink! Smart Contracts?
I'm working on a smart contract using the ink! framework for Polkadot, and I need to perform some trigonometric calculations, specifically using the sin() and cos() functions. Since ink! is based on ...
0
votes
0
answers
17
views
Getting Wrong ABI for the openbrush contracts
openbrush Library
when I am building the openbrush examples i am getting wrong ABI for the input of all the functions that are in the libraray.
Can anyone tell why it is happening.
e.g.
This is in ...
0
votes
0
answers
11
views
Decimals in the psp22 contract
What is the role of decimals in the PSP22 contract ??
as by default Balance data-type will automatically take the number of decimal places that we have set in the chain, so what is the role of ...
0
votes
0
answers
20
views
Gas Limit is over estimated for dex contract
i've been working with the dex smart contracts. Whenever i try to use the add liquidity function of the contract ,it has been calculating the gas limit of 1.3 billion in frontier1.1.0. In frontier v1....
0
votes
0
answers
15
views
Tool for Automatic Generation of Contract Wrapper Code from Ink Metadata
I am currently exploring ways to streamline the process of interacting with contracts on the Pallet Contracts. One challenge I've encountered is the need to manually write wrapper code for contracts ...
0
votes
0
answers
12
views
How to call function with the same name but from different trait inside ink-e2e-test
Let's say I have the following impl of my Contract:
impl Contract{
#[ink(message)]
pub fn my_fun(&self);
}
impl MyTrait1 for Contract {
#[ink(message)]
pub fn my_fun(&self);
}
...
0
votes
0
answers
66
views
How to execute smart contract from offchain-worker?
Would it be possible to execute smart contract call from an offchain-worker, either using ink! or pallet-contracts?
Can someone please help me to provide the solution? is there any example?
0
votes
0
answers
24
views
contracts.ContractReverted: The contract ran to completion but decided to revert its storage changes. Ink nft smart contract
I am trying to call the set_base_uri function and the mint_next function of the ink! NFT smart contract. When calling from polkadot-ui it is working correctly but when I call it using nextjs it gives ...
0
votes
0
answers
19
views
Could not decode `ContractInfo::storage_item_deposit
When I am doing runtime-upgrade from polkadot-v0.9.38 to polkadot-v0.9.39 .I am getting one issue of smart contract in my terminal
2023-09-18 11:36:25 Corrupted state at `[67, 66, 25, 62, 73, 111, ...
0
votes
0
answers
25
views
Selling token to any third party tools
When user stake his NFT, then he earns certain amount of $EGGS token which is in-game currency. He can to sell those token to third party tools. How to implement selling token to any third party tools ...
0
votes
0
answers
70
views
How to wrap an ink::env::Error in a Custom Error?
In my contract, I have a requirement to call messages from external contracts without knowing their specific identities beforehand. To achieve this, I utilize the call builder, enabling the execution ...