Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

feat: add storageRune.default and re-add constants codegen #799

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

harrysolovay
Copy link
Contributor

@harrysolovay harrysolovay commented Mar 25, 2023

Closes #618

storageRune.default

import { System } from "polkadot_dev/mod.js"

assertEquals(
  await System.Account.default().run(),
  {
    nonce: 0,
    consumers: 0,
    providers: 0,
    sufficients: 0,
    data: { free: 0n, reserved: 0n, miscFrozen: 0n, feeFrozen: 0n }
  }
)

Constant codegen

import { System } from "polkadot_dev/mod.js"

System.SS58Prefix // `number`

@tjjfvi
Copy link
Contributor

tjjfvi commented Mar 27, 2023

Given the direction we're going on the storage codegen I'm not sure we want constants codegen

@harrysolovay

This comment was marked as off-topic.

@harrysolovay harrysolovay added this pull request to the merge queue Mar 27, 2023
Merged via the queue into main with commit b89ec38 Mar 27, 2023
@harrysolovay harrysolovay deleted the default-storage branch March 27, 2023 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expose .default() method on StorageRune
3 participants