Skip to content

Commit

Permalink
ethers6 lib migration
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Apr 19, 2023
1 parent 114abf6 commit 93d3b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rouge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const abiEncodeAcquire = async ({ channels, signer, secret, contract, acq
const salt = await signer.provider.getTransactionCount(signerAddress)
trace('[abiEncodeAcquire]', { signerAddress, chainId, secretHash, salt })
let index = 1
let nativeTotal = BigNumber.from(0)
let nativeTotal = 0n
// throw if twice same channelId => also solidityCheck ?
const loop = ({ channelId, qty = 1 } = {}, i) => {
// XXX check uint8 qty, uint16 channelId ?
Expand Down Expand Up @@ -227,7 +227,7 @@ export const abiEncodeCertificate = ({ from, tokenId, selector, expire, signatur

export const decodeRoles = async (contract, selectors, account, channels) => {
const raw = await contract.getRoles(
selectors.map(s => contract.interface.getFunction(s).selector,
selectors.map(s => contract.interface.getFunction(s).selector),
account
)
return raw.map(c => {
Expand Down

0 comments on commit 93d3b8a

Please sign in to comment.