-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
setAttempting(true) | ||
claimCallback() | ||
claimCallback([{ index: 1080 }]) |
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.
Trying to claim the claim 1080
for account 0x0Ae21f9700eD15E1a83baa3183a67d54b1DA2086
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.
use registerOnWindow and make a global index changeable?
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.
Don't think it's worth the effort, we'll soon wire this up with the UI
|
ba44ffd
to
a4c1b3b
Compare
const { account, chainId } = useActiveWeb3React() | ||
const { chainId } = useActiveWeb3React() | ||
|
||
const account = '0x0Ae21f9700eD15E1a83baa3183a67d54b1DA2086' |
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.
Temporary hard coded changes
@@ -57,7 +57,7 @@ export const V_COW_CONTRACT_ADDRESS: Partial<Record<number, string>> = { | |||
// [ChainId.MAINNET]: GPv2Settlement[ChainId.MAINNET].address, | |||
// [ChainId.RINKEBY]: GPv2Settlement[ChainId.RINKEBY].address, | |||
// [ChainId.XDAI]: GPv2Settlement[ChainId.XDAI].address, | |||
[ChainId.RINKEBY]: '0x8f07778b703f9feb93521fc5230e859dbd032b6b', | |||
[ChainId.RINKEBY]: '0xac17Ae2BcAF9Ed181C4Ab10B179548d6aa30C92E', |
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 why it didn't work before, I was using the wrong contract address...
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.
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.
nice
Summary
Updated
ClaimType
from a TS type to an enum, to be inline with contractAdded modified
useClaimCallback
Example of a successful tx claiming
1080
https://rinkeby.etherscan.io/tx/0x90ad7c1ffc412c75286f91ae821c23397bbe0e2e75fdcf6e5961101c7b1f220eTo Test
1080
(no way to do that in the UI yet)claim vCOW
claim
in the modalYour transaction should be sent
Background
Optional: Give background information for changes you've made, that might be difficult to explain via comments