Skip to content

Commit

Permalink
refactor(namada): bye namada-tx-base
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Jun 6, 2024
1 parent 7ce6f93 commit c1fb669
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 181 deletions.
6 changes: 3 additions & 3 deletions packages/namada/namada-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,16 @@ export class NamadaConnection extends CW.Connection {
}
override async fetchBlockImpl (
parameter?: ({ height: number }|{ hash: string }) & { raw?: boolean }
): Promise<TX.NamadaBlock> {
): Promise<TX.Block> {
if (!this.url) {
throw new CW.Error("Can't fetch block: missing connection URL")
}
if ((!parameter) || ('height' in parameter)) {
return TX.NamadaBlock.fetchByHeight(
return TX.Block.fetchByHeight(
this, parameter?.height || '', parameter?.raw
)
} else if ('hash' in parameter) {
return TX.NamadaBlock.fetchByHash(
return TX.Block.fetchByHash(
this, parameter.hash || '', parameter.raw
)
} else {
Expand Down
170 changes: 0 additions & 170 deletions packages/namada/namada-tx-base.ts

This file was deleted.

Loading

0 comments on commit c1fb669

Please sign in to comment.