Skip to content

Commit

Permalink
ethers v6 draft
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Apr 21, 2023
1 parent 142b7fe commit da176da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const abiEncodeAcquire = async ({ channels, signer, secret, contract, acq
}
// or Type = 'Native'
if (channels && channels[channelId] && channels[channelId]?.amount?.token?._isNative) {
nativeTotal = nativeTotal.add(channels[channelId].amount.valueOf().mul(qty))
nativeTotal = nativeTotal + channels[channelId].amount.number * BigInt(qty)
}
return [ channelId, qty, salt, stamps ]
}
Expand Down

0 comments on commit da176da

Please sign in to comment.