Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fix: loading of wins, and gradient border…
Browse files Browse the repository at this point in the history
… on claim modal
  • Loading branch information
RasenGUY committed Dec 17, 2023
1 parent 86db114 commit a327ed5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/CreateGameCard/CreateCoinFlipGameCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ export const CreateCoinFlipGameCard = ({
}).unwrap();
}
const receipt = await createWagerAndDeposit({
tokenAddress, wagerAsBigint: toBigIntInWei(String(wager), tokenDecimals), gameType, randomness: [convertBytesToNumber(drand.data.randomness)] }).unwrap();
tokenAddress,
wagerAsBigint: toBigIntInWei(String(wager), tokenDecimals),
gameType,
randomness: [convertBytesToNumber(drand.data.randomness)] }).unwrap();

const parsedTopicData = parseTopicDataFromEventLogs(receipt.logs, ['event GameCreation(bytes32 indexed escrowHash, uint256 indexed nonce, address creator, string name)']);
await createGame({
gameType,
Expand Down
4 changes: 4 additions & 0 deletions src/libs/rtk/patch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// eslint-disable-next-line no-undef
BigInt.prototype.toJSON = function() {
return this.toString()
}
1 change: 1 addition & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './libs/rtk/patch.js'
import React from "react"
import ReactDOM from "react-dom/client"
import App from "./containers/App";
Expand Down

0 comments on commit a327ed5

Please sign in to comment.