Skip to content

Commit

Permalink
build: update soroban-client to v0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Aug 8, 2023
1 parent db597c8 commit d825f43
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
8 changes: 3 additions & 5 deletions components/molecules/form-pledge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ function MintButton({ account, symbol, onComplete, decimals }: { decimals: numbe
const [isSubmitting, setSubmitting] = useState(false)

const displayAmount = 100
const amount = BigInt(displayAmount * 10**decimals)
const amount = BigInt(displayAmount * 10 ** decimals)

return (
<Button
title={`Mint ${displayAmount} ${symbol}`}
onClick={async () => {
setSubmitting(true)
await abundance.mint({ to: account, amount }, { signAndSend: true })
await abundance.mint({ to: account, amount })
setSubmitting(false)
onComplete()
}}
Expand Down Expand Up @@ -80,9 +80,7 @@ const FormPledge: FunctionComponent<IFormPledgeProps> = props => {
try {
await deposit({
user: props.account,
amount: BigInt(amount * 10**decimals),
}, {
signAndSend: true
amount: BigInt(amount * 10 ** decimals),
})

setResultSubmit({
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"next": "^13.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"soroban-client": "0.9.1"
"soroban-client": "0.9.2"
},
"devDependencies": {
"@types/humanize-duration": "^3.27.1",
Expand Down

0 comments on commit d825f43

Please sign in to comment.