fix(rpc): ensure 0x prefix for recipient in sendBzzTransaction and add tests (#722)

* fix(rpc): ensure 0x prefixed recipient in sendBzzTransaction and add tests

* fix(tests): move rpc spec to tests/unit after rebase to master
This commit is contained in:
Ferenc Sárai
2026-03-05 10:28:29 +01:00
committed by GitHub
parent 7382da8595
commit fff94d9071
2 changed files with 72 additions and 1 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ export async function sendBzzTransaction(
const feeData = await signer.provider.getFeeData()
const gasPrice = feeData.gasPrice || BigInt(0)
const bzz = new Contract(BZZ_TOKEN_ADDRESS, bzzABI, signer)
const transaction = await bzz.transfer(to, value, { gasPrice })
const transaction = await bzz.transfer(to.toChecksum(), value, { gasPrice })
const receipt = await transaction.wait(1)
if (!receipt) {