Skip to main content

Unanswered Questions

48 questions with no upvoted or accepted answers
0 votes
1 answer
5 views

Issues with Dependency Version Mismatch and Rust Toolchain Version for Frontier polkadot-v1.8.0 Branch

Problem Description I cloned the polkadot-v1.8.0 branch of the Frontier repository and am attempting to build the Substrate chain using Cargo. However, I'm encountering issues with mismatched library ...
0 votes
1 answer
20 views

Call read only ink contract functions from subxt

How do i do something like cargo contract call --contract --message get --suri //Alice in subxt or from a rust backend the docs in subxt focus mostly on signing and submitting txs and events hence ...
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
2 answers
17 views

SCALE encoding how to get 29 bits in 4 bytes

i am trying to understand the SCALE encoding spec in the jam spec, where it says you can fit 29 bits plus a prefix. 2^21 ≤ x < 2^29, where the prefix is 0b1110, and takes up the left most 4 bits, ...
0 votes
1 answer
20 views

Creation of a smart contract in contracts pallet

I need to create a smart contract using contracts pallet. I look at the source code of the contracts pallet and see: pub fn upload_code( origin: OriginFor<T>, code: Vec<u8>, ...
0 votes
1 answer
17 views

openbrush::implementation(PSP34Ownable) not implemented!

when building I get this error: error: custom attribute panicked | 4 | #[openbrush::implementation(PSP34, PSP34Ownable, PSP34Mintable, PSP34Enumerable, PSP34Metadata)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
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 ...
1 vote
0 answers
33 views

DOT, KSM transfer sign payload order

I want to know the scale codec order for sign payload cause currently I can't transfer WND, KSM right now currently my codec order is method call -> era -> nonce -> tip -> specVer -> ...
3 votes
0 answers
39 views

Why is the index of a pallet a u32(usize) instead of u8 when queried?

I'm implementing a flow where I first ask what index a pallet has with the QueryPallet xcm instruction, and then construct a call to use with Transact. I see that to construct manually an encoded call ...
0 votes
1 answer
33 views

KSM, WND transfer transaction fail, but DOT success

I used the same program, the same fullnode version, and the same Substrate API sidecar version to submit transfer transactions for DOT, KSM, and WND. Only DOT was successful. Two months ago, DOT, KSM, ...
0 votes
1 answer
19 views

How Can I Scale Token Distribution in an INK! Custody Smart Contract Using OpenBrush?

community! I am a beginner in INK! and I am developing a custody contract using OpenBrush. This contract receives token (X) as collateral for another token (Y) contract. At regular intervals, the ...
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....

15 30 50 per page