Skip to content

Commit

Permalink
fix address padding
Browse files Browse the repository at this point in the history
  • Loading branch information
douglance committed Apr 22, 2024
1 parent a6e60e0 commit 82da9ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/message/messageDataParser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AbiCoder, getAddress } from 'ethers-v6'
import { AbiCoder, getAddress, toBeHex } from 'ethers-v6'

export class SubmitRetryableMessageDataParser {
/**
Expand All @@ -25,7 +25,7 @@ export class SubmitRetryableMessageDataParser {
)

const addressFromBigInt = (value: bigint) => {
const hexString = value.toString(16)
const hexString = toBeHex(value, 20)
const addr = getAddress(hexString)
return addr
}
Expand Down

0 comments on commit 82da9ce

Please sign in to comment.