Skip to content

Commit

Permalink
Fix EVM funding struct
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 26, 2024
1 parent 04cc488 commit 29c69e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flow/fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function fundAccount(
const {tx, amount} = tokens[addressType]

if (addressType === "FLOWEVM") {
const addressBytes = Array.from(Buffer.from(address, "hex")).map(b =>
const addressBytes = Array.from(Buffer.from(fcl.sansPrefix(address), "hex")).map(b =>

Check failure on line 108 in lib/flow/fund.ts

View workflow job for this annotation

GitHub Actions / Static checks (20.x)

Replace `Buffer.from(fcl.sansPrefix(address),·"hex")).map(b·=>⏎······b.toString()⏎····` with `⏎······Buffer.from(fcl.sansPrefix(address),·"hex")⏎····).map(b·=>·b.toString()`
b.toString()
)

Expand All @@ -116,7 +116,7 @@ export async function fundAccount(
{
fields: [{name: "bytes", value: addressBytes}],
},
t.Struct(`A.${publicConfig.contractEVM}.EVM.EVMAddress`, [
t.Struct(`A.${fcl.sansPrefix(publicConfig.contractEVM)}.EVM.EVMAddress`, [

Check failure on line 119 in lib/flow/fund.ts

View workflow job for this annotation

GitHub Actions / Static checks (20.x)

Replace ``A.${fcl.sansPrefix(publicConfig.contractEVM)}.EVM.EVMAddress`,·[` with `⏎············`A.${fcl.sansPrefix(publicConfig.contractEVM)}.EVM.EVMAddress`,`
{value: t.Array(t.UInt8)},

Check failure on line 120 in lib/flow/fund.ts

View workflow job for this annotation

GitHub Actions / Static checks (20.x)

Replace `{value:·t.Array(t.UInt8)},` with `[{value:·t.Array(t.UInt8)}]`
])

Check failure on line 121 in lib/flow/fund.ts

View workflow job for this annotation

GitHub Actions / Static checks (20.x)

Delete `]`
),
Expand Down

0 comments on commit 29c69e2

Please sign in to comment.