Questions tagged [rust-ink]

ink! is a Rust eDSL for developing Wasm smart contracts on the Parity Substrate blockchain development framework

GitHub: https://github.com/paritytech/ink

Wiki: https://github.com/paritytech/ink/wiki

48 questions
0
votes
1 answer

metadata-gen fails with exit code None

I am going through the flipper tutorial and am getting an error when running metadata-gen. ERROR: `"/Users/home/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/cargo" "run" "--package" "metadata-gen"…
0
votes
0 answers

How to encode call data to a contract

Reading through the ink source code (here), my understanding is that a contract call is the selector concatenated with any arguments to the function. From a Substrate runtime module test, I use the CallData builder which does as described let mut…
jay
  • 477
  • 1
  • 9
  • 17
-1
votes
1 answer

What is the right way to use ink3 | self.env().block_timestamp() | Test Error :: 'uninitialized execution context: UninitializedBlocks'

What is the right way to use ink3 "self.env().block_timestamp()" Reference code snippet ( full code is @ https://gist.github.com/shamb0/a1f24cd7981e169cc5b7d1e1b3ec4dd4 ) pub fn get_bts(&self) -> u64 { let bts =…
shamb0
  • 21
  • 3
1 2 3
4