subsquid / squid-sdk

The main repo of the squid SDK
Apache License 2.0
1.23k stars 151 forks source link

Fix corrupted message name if abi contains messages with path #137

Closed HyunggyuJang closed 1 year ago

HyunggyuJang commented 1 year ago

For example, if we use openbrush's PSP22, it will generate

export interface Message_PSP22::allowance {
  __kind: 'PSP22::allowance'
  owner: Uint8Array
  spender: Uint8Array
}

which is not valid naming in typescript. With this PR, it generates

export interface Message_PSP22_allowance {
  __kind: 'PSP22_allowance'
  owner: Uint8Array
  spender: Uint8Array
}
belopash commented 1 year ago

looks like this will be closed by https://github.com/subsquid/squid-sdk/pull/135

tmcgroul commented 1 year ago

@HyunggyuJang Thanks for your contribution! But you are a bit late...