Skip to content

Commit

Permalink
Merge pull request #80 from helium/bugfix/zero-dc-bal
Browse files Browse the repository at this point in the history
Fix fee estimation when no dc account
  • Loading branch information
ChewingGlass authored Jul 13, 2023
2 parents 67dbe00 + 6e4283c commit 28d351b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ PODS:
- FlipperKit/FlipperKitNetworkPlugin
- fmt (6.2.1)
- glog (0.3.5)
- helium-react-native-sdk (2.1.2):
- helium-react-native-sdk (2.1.3):
- React-Core
- hermes-engine (0.70.6)
- libevent (2.1.12)
Expand Down Expand Up @@ -644,7 +644,7 @@ SPEC CHECKSUMS:
FlipperKit: cbdee19bdd4e7f05472a66ce290f1b729ba3cb86
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
helium-react-native-sdk: e3aabe0ed88980a4890754bf1d2e72b089b68582
helium-react-native-sdk: a5b54a8baa48cee7019c7dbae35cc2983f816376
hermes-engine: 2af7b7a59128f250adfd86f15aa1d5a2ecd39995
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
MultiplatformBleAdapter: 5a6a897b006764392f9cef785e4360f54fb9477d
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helium/react-native-sdk",
"version": "2.1.2",
"version": "2.1.3",
"description": "Helium React Native SDK",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Solana/useSolana.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export const getAccountFees = async ({
const lamportFee = lamportsBefore - lamportsAfter
let dcFee = 0

if (dcAccount) {
if (dcAccount && dcAccount.lamports > 0) {
const tokenAccount = AccountLayout.decode(
Buffer.from(dcAccount.data[0], dcAccount.data[1] as BufferEncoding)
)
Expand Down

0 comments on commit 28d351b

Please sign in to comment.