Skip to content

Commit

Permalink
Add missing 0x prefix to eth hashes in runtime events
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jul 12, 2023
1 parent c3d9cf2 commit 4ad6610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/728.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing 0x prefix to eth hashes in runtime events
2 changes: 2 additions & 0 deletions src/oasis-nexus/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ export const useGetRuntimeEvents: typeof generated.useGetRuntimeEvents = (
) {
return {
...event,
eth_tx_hash: `0x${event.eth_tx_hash}`,
body: {
...event.body,
amount:
Expand All @@ -562,6 +563,7 @@ export const useGetRuntimeEvents: typeof generated.useGetRuntimeEvents = (
}
return {
...event,
eth_tx_hash: `0x${event.eth_tx_hash}`,
layer: runtime,
network,
}
Expand Down

0 comments on commit 4ad6610

Please sign in to comment.