Skip to main content

Questions tagged [smart-contract]

Everything smart contract related, either WASM or EVM based.

2 votes
1 answer
36 views

Why is the value parameter (of some Balance type) required in the call extrinsic of pallet-contracts? The data parameter seems to handle all the business, why does value need its own thing? Function ...
khassanov's user avatar
  • 125
0 votes
1 answer
26 views

I'm working with the polkadot-sdk-solochain-template and have successfully executed contract calls using JavaScript (via polkadot‑js). However, I'm facing challenges when trying to call smart contract ...
sithum ravishka's user avatar
0 votes
0 answers
7 views

ink::env::test::set_block_timestamp doesn't work in e2e setting. What's the proper way of testing timed contracts in that case? I can't isolate particular contract to test without cross-contract ...
froosty's user avatar
  • 11
1 vote
0 answers
13 views

I had been looking around for tools to aid my ink! smart contract development. I had found OpenBrush from BrushFam and RMRK-ink to be a great resources.But seem like they haven't got any updates since ...
Sacate's user avatar
  • 21
1 vote
1 answer
24 views

i am new to smart contract development and i decide to use Ink as a way to learn more about blockchain and Dapps. I was curious about what if an unauthorized actor could instantiate a new instance of ...
Sacate's user avatar
  • 21
1 vote
1 answer
48 views

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 ...
roguewane's user avatar
1 vote
0 answers
22 views

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 ...
roguewane's user avatar
2 votes
1 answer
25 views

I'm trying to make a pallet -> contract call, using the bare_call function. pub fn call_smart_contract( origin: OriginFor<T>, dest: T::AccountId, mut ...
Alexandre Ribeiro's user avatar
1 vote
1 answer
32 views

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>, ...
Tomasz Waszczyk's user avatar
0 votes
1 answer
21 views

when building I get this error: error: custom attribute panicked | 4 | #[openbrush::implementation(PSP34, PSP34Ownable, PSP34Mintable, PSP34Enumerable, PSP34Metadata)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
MarlessDev's user avatar
1 vote
1 answer
75 views

I just installed pallet-contracts on my Frontier node. From the Polkadot js app interface, I can send transactions with tokens without problems, but if I try to deploy a new smart contract (inside ...
Jacopo Mosconi's user avatar
0 votes
1 answer
60 views

I'm trying to process a result from a contract call using what's here. It works totally fine when I'm trying to get a u32 result from an ink_e2e test. E.g. // -- Snip -- let number_of_items = client ...
Kofi's user avatar
  • 143
2 votes
1 answer
43 views

I want add pallet-evm in my substrate node. and my substrate node use Babe instead of Aura. How can I Impl FindAuthor whih Babe ? this is the example of Aura. I want to impl it with Babe pub struct ...
robin y's user avatar
  • 21
0 votes
1 answer
41 views

This is how i am trying to invoke call.. where Bytes is Vec<u8> let res = build_call::<DefaultEnvironment>() .call(handler_acc_id) .exec_input( ...
Priyanshu Mishra's user avatar
1 vote
0 answers
15 views

In Ink 5.0, the Static Buffer size can be increased. Does anyone know HOW to do that? This PR mentions several methods they were considering: https://github.com/paritytech/ink/pull/1869 I tried the ...
KathrynColleen's user avatar

15 30 50 per page
1
2 3 4 5
19