-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
e272486
to
c673d7a
Compare
@@ -80,10 +80,11 @@ async function main() { | |||
`Registering ${numPubkeys} pubkeys. Custom mnemonic: ${!!pubkeyMnemonic}` | |||
); | |||
const group = Group.new({ | |||
n: pubkeyMnemonic, | |||
n: parseInt(numPubkeys), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this derp was me, should work properly now.
@@ -116,7 +116,7 @@ export async function handleNewBatch( | |||
const receipt = await event.getTransactionReceipt(); | |||
const logs = receipt.logs.map(log => rollup.interface.parseLog(log)); | |||
const depositsFinalisedLog = logs.filter( | |||
log => log.signature == "DepositsFinalised(uint256,bytes32,uint256)" | |||
log => log.signature === "DepositsFinalised(uint256,bytes32,uint256)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
===
> ==
https://stackoverflow.com/a/3586781
@@ -10,6 +10,8 @@ export interface Entry<Item> { | |||
item: Item; | |||
} | |||
|
|||
// TODO Update this interface and implementations to | |||
// use BigNumber for itemID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoided this refactor as this PR is already large and didn't want to bork @kautukkundan 's work :) BigNumberish
should be fine as well as long as the storage engine and tree both store in a large value format under the covers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh makes sense, can discuss this
@@ -176,7 +176,7 @@ export function parseG2(solG2: solG2): mclG2 { | |||
} | |||
|
|||
function dump(sol: solG1 | solG2): string { | |||
return `0x${sol.map(n => n.toString().slice(2)).join()}`; | |||
return `0x${sol.map(n => n.toString().slice(2)).join("")}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also my derp. join
by default adds a comma separator which the previous implementation did not.
@kautukkundan @ChihChengLiang your 👀 would be especially appreciated on |
// Setup and register custom tokens | ||
const customTokens = await Promise.all([ | ||
new CustomToken__factory(signer).deploy("Hubble", "HUB"), | ||
new CustomToken__factory(signer).deploy("Telescope", "TLSC") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Telescope token ❤️
@@ -13,6 +14,22 @@ import { | |||
|
|||
chai.use(chaiAsPromised); | |||
|
|||
const txFactory = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
@@ -10,6 +10,8 @@ export interface Entry<Item> { | |||
item: Item; | |||
} | |||
|
|||
// TODO Update this interface and implementations to | |||
// use BigNumber for itemID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh makes sense, can discuss this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
c673d7a
to
5bc9dcb
Compare
SameTokenPool -> MultiTokenPool to support multiple token transactions. Convert numerous number types to BigNumber to reflect L1 values and prevent overflows. Add maxPendingTransactions to config file. ExampleToken -> CustomToken test contract to aid in testing multiple ERC20 tokens. Fix deploy script not generating the correct number of public keys. Update client integration test and utilities to support multiple tokens. Fix bug in mcl.dump where comma was being added to joined hexes.
5bc9dcb
to
0893844
Compare
Resolves #626
TODO
MultiTokenPool
Add script to generate and deposit (create state) for fee receiversScripts to add 4 tokens and fee receivers for dev case #476number
->BigNumber
refactor points.