When converting a Thirdweb account to a viem client, viem's createClient function assumes an address passed a json-rpc account. This causes issues with local accounts that should have the type local on their viem client. Functions that many SDKs use like getAddresses break due to the incorrect account type.
Can fix this by adding to the PrivateKeyAccount type in progress on #2525 and passing the full account to viem's createClient when the account is a PrivateKeyAccount
When converting a Thirdweb account to a viem client, viem's
createClient
function assumes an address passed a json-rpc account. This causes issues with local accounts that should have the typelocal
on their viem client. Functions that many SDKs use likegetAddresses
break due to the incorrect account type.Can fix this by adding to the
PrivateKeyAccount
type in progress on #2525 and passing the full account to viem's createClient when the account is a PrivateKeyAccount