Skip to content

Commit

Permalink
Hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardotc committed May 9, 2024
1 parent db41198 commit 1d8e99f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api-kit/src/SafeApiKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class SafeApiKit {
}
const { address: delegate } = this.#getEip3770Address(delegateAddress)
const { address: delegator } = this.#getEip3770Address(delegatorAddress)
const signature = await this.#signDelegate(signer, delegate)
const signature = await signDelegate(signer, delegate, this.#chainId)

return sendRequest({
url: `${this.#txServiceBaseUrl}/v2/delegates/${delegate}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/api-kit/src/utils/signDelegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function padHex(
return `0x${result[dir === 'right' ? 'padEnd' : 'padStart'](size * 2, '0')}`
}

export async function signDelegate(signer: Signer, delegateAddress: string, chainId: string) {
export async function signDelegate(signer: Signer, delegateAddress: string, chainId: bigint) {
const domain = {
name: 'Safe Transaction Service',
version: '1.0',
Expand Down

0 comments on commit 1d8e99f

Please sign in to comment.