Skip to content

Commit

Permalink
🐛 fix(core): Fix bug with Write type being wrong (#483)
Browse files Browse the repository at this point in the history
## Description

Fixed bug with bad type in evmts-core

## Testing

Explain the quality checks that have been done on the code changes

## Additional Information

- [ ] I read the [contributing docs](../docs/contributing.md) (if this
is your first contribution)

Your ENS/address:

Co-authored-by: Will Cory <[email protected]>
  • Loading branch information
roninjin10 and Will Cory authored Sep 28, 2023
1 parent 1dc469c commit f3b2b21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-dingos-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@evmts/core": patch
---

Fixed bug with write() typescript type falsely not returning functionName. This would previously cause issues where typescript would falsely think functionName was not provided even though it was there at runtime.
1 change: 1 addition & 0 deletions core/src/write/Write.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ export type Write<
args: TArgs
abi: [ExtractAbiFunction<TAbi, TFunctionName>]
humanReadableAbi: FormatAbi<[ExtractAbiFunction<TAbi, TFunctionName>]>
functionName: TFunctionName
}
}

1 comment on commit f3b2b21

@vercel
Copy link

@vercel vercel bot commented on f3b2b21 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

evmts-docs – ./

evmts-docs-git-main-evmts.vercel.app
evmts-docs-evmts.vercel.app
evmts.dev

Please sign in to comment.