Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 258

eDSL to write smart contracts in Rust for blockchains built on the Substrate framework

0 votes

Is there a way to instantiate a wasm contract code?

Seems you are trying to make a cross contract call. You can look at this question to take a cue on the best way to achieve this. You can also make a low-level cross contract call using the build_call …
dharjeezy's user avatar
  • 429
3 votes
1 answer
110 views

Build Issues when implementing PSP22 token standard for ink! contract

I am trying to implement the PSP22 token standard but getting errors when building my contract. The errors are: #[brush::contract] | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module psp22metadata_ …
dharjeezy's user avatar
  • 429
4 votes
Accepted

Build Issues when implementing PSP22 token standard for ink! contract

Turns out i was missing a features flag on my brush dependency. This solved it for me: brush = { tag = "v1.6.1", git = "https://github.com/Supercolony-net/openbrush-contracts", default-features = fals …
dharjeezy's user avatar
  • 429
3 votes
1 answer
242 views

How can I determine the native Balance of an Account/Address in Ink!

One can know the contract's native balance by using ink_env::balance() But, How can one know the native balance of a particular address/account in ink? …
dharjeezy's user avatar
  • 429
0 votes
1 answer
38 views

How to run multiple Integration tests at once in Redspot Ink!

I am currently writing integration tests for my contracts using redspot, I can't seem to run all my integration tests at once, I can only run integration test by using the keyword it.only. Anytime I t …
dharjeezy's user avatar
  • 429
4 votes
1 answer
43 views

How can i query pallet contract to give the Scale codec value of a Contract Root Storage Key

According to ink!: "Storage data is always encoded with the SCALE codec. …
dharjeezy's user avatar
  • 429
5 votes
1 answer
277 views

What is the best way to make a cross contract call on Ink!

I found 2 ways to make cross contract calls on ink!. The first is in this link here where another contract is called directly, The second is in this link here where a reference(ref) is being used. …
dharjeezy's user avatar
  • 429
1 vote
1 answer
128 views

ink_env::ecdsa_recover is not returning the right public key

I am having an issue trying to verify ecdsa signature in ink! for my test. …
dharjeezy's user avatar
  • 429
2 votes
Accepted

ink_env::ecdsa_recover is not returning the right public key

So I figured the signature creation in polkadotJS is to receive the raw data and not the hash. More so, I had to generate the public key this way: const mnemonic = mnemonicGenerate(); const keyring = …
dharjeezy's user avatar
  • 429