ask-old icon indicating copy to clipboard operation
ask-old copied to clipboard

Ask! is a framework to write Wasm smart contracts for Substrate Frame Pallet-Contracts in AssemblyScript

Results 7 ask-old issues
Sort by recently updated
recently updated
newest added

having this example code ··· import { PackedStorableArray} from "ask-lang"; @contract class Flipper { @state flag: bool; @state @packed({ "capacity": 128 }) packeArr: PackedStorableArray = new PackedStorableArray(); @state aArr: PackedStorableArray...

``` protected _transfer(sender: AccountId, recipient: AccountId, amount: u128): void { assert(sender.notEq(AccountId.Null), "ERC20: transfer from the zero address"); assert(recipient.notEq(AccountId.Null), "ERC20: transfer to the zero address"); let spenderBalance =this.balanceOf(sender); assert(spenderBalance >= amount,...

enhancement

When the contract code contains error, the compiler will still generate `.wasm` file but missing `metadata.json`. Ideally, no file shall be generated when compilation failed

I followed the instructions of the Ask! quickstart over [here](https://docs.patract.io/en/ask/intro/quickstart) to create a simple contract, and when I want to compile it, I get the following error: ``` ❯ npx...

Event message, Hard to interpret the raw bytes, better to decode it. ![](https://i.imgur.com/xfOHFCD.png) ![](https://i.imgur.com/9wTdRqT.png) **Complete Report & review form** https://docs.google.com/spreadsheets/d/1lcaPa_cEp912ntmRIY03GtEEh8LESUzIkSLCew206PE/edit?usp=sharing https://docs.google.com/document/d/1H4d_qOCWEzY_W1Pr8_jdP0uMUcrrkVR4utZbKL-yCRg/edit?usp=sharing

- We need to explore some ways to extract the `ask!` code from the `as` compiler internal. At present, it can be completely written as an independent `ts` project, in...

enhancement
good first issue