Skip to content

Commit

Permalink
#458: buffer polyfill fix and update to latest soroban-react packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed May 31, 2023
1 parent 68c6264 commit 6f646f5
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 120 deletions.
2 changes: 1 addition & 1 deletion components/organisms/pledge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const Pledge: FunctionComponent = () => {
contractId: Constants.CrowdfundId,
topics: ['pledged_amount_changed'],
cb: (event: SorobanClient.SorobanRpc.EventResponse): void => {
let eventTokenBalance = xdr.ScVal.fromXDR(Buffer.from(event.value.xdr, 'base64'))
let eventTokenBalance = xdr.ScVal.fromXDR(event.value.xdr, 'base64')
setTokenBalance(convert.scvalToBigNumber(eventTokenBalance))
},
id: Math.random()} as EventSubscription);
Expand Down
Loading

0 comments on commit 6f646f5

Please sign in to comment.