Skip to content

Commit

Permalink
fix: encode data
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Dec 20, 2022
1 parent 5540431 commit 1c7fe71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -143,7 +143,7 @@ const SelectWallet = memo(() => {
await WalletRPC.resolveMaskAccount([
{
address: selected,
owner: wallet?.address,
owner: wallet?.owner,
identifier: wallet?.identifier,
},
])
Expand Down
4 changes: 2 additions & 2 deletions packages/web3-shared/evm/src/libs/UserTransaction.ts
Expand Up @@ -275,9 +275,9 @@ export class UserTransaction {

return UserTransaction.fromUserOperation(chainId, entryPoint, {
...DEFAULT_USER_OPERATION,
sender: from,
sender: formatEthereumAddress(from),
nonce: toNumber(nonce as number),
callData: coder.encodeFunctionCall(CALL_WALLET_TYPE, [to, value, data]),
callData: coder.encodeFunctionCall(CALL_WALLET_TYPE, [to, value, data.replace(/^0x\w{8}/, '0x')]),
signature: '0x',
})
}
Expand Down

0 comments on commit 1c7fe71

Please sign in to comment.