Skip to content

Commit

Permalink
Run lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Feb 24, 2024
1 parent 56bb8ca commit 021e7e9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/flow/fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,36 +102,36 @@ export async function fundAccount(
const {tx, amount} = tokens[addressType]

if (addressType === "FLOWEVM") {

let addressBytes = Array.from(Buffer.from(address, "hex")).map(b => b.toString())
const addressBytes = Array.from(Buffer.from(address, "hex")).map(b =>
b.toString()
)

await sendTransaction({
transaction: tx,
args: [
fcl.arg(
{
fields: [{name: "bytes", value: addressBytes}],
},
t.Struct(`A.${publicConfig.contractEVM}.EVM.EVMAddress`, [{value: t.Array(t.UInt8)}])
),
fcl.arg(amount, t.UFix64),
fcl.arg("60000", t.UInt64),
fcl.arg(
{
fields: [{name: "bytes", value: addressBytes}],
},
t.Struct(`A.${publicConfig.contractEVM}.EVM.EVMAddress`, [
{value: t.Array(t.UInt8)},
])
),
fcl.arg(amount, t.UFix64),
fcl.arg("60000", t.UInt64),
],
authorizations: [authorization],
payer: authorization,
proposer: authorization,
})

} else {

await sendTransaction({
transaction: tx,
args: [fcl.arg(address, t.Address), fcl.arg(amount, t.UFix64)],
authorizations: [authorization],
payer: authorization,
proposer: authorization,
})

}
return amount
}

0 comments on commit 021e7e9

Please sign in to comment.