Sorry for the rudimentary question, I'm new to Rust and ink!
I get a lot of errors when I run cargo +nightly contract test
.
I have checked the official site for the usage of ink_storage::Mapping
, but am I implementing it properly?
error[E0614]: type `u128` cannot be dereferenced
--> lib.rs:102:26
|
102 | let token1 = *self.token1Balance.get(&caller).unwrap_or(0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
repo is bellow:https://github.com/tnkshuuhei/WasmAMMcontract/lib.rs