Skip to content

Commit

Permalink
Fix bscscan write contract (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens authored Dec 21, 2020
1 parent d8ad4a6 commit eaa05f5
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dist/trust-min.js
Git LFS file not shown
16 changes: 8 additions & 8 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PODS:
- SwiftProtobuf (1.12.0)
- TrustWalletCore (2.2.10):
- TrustWalletCore/Core (= 2.2.10)
- TrustWalletCore/Core (2.2.10):
- SwiftProtobuf (1.14.0)
- TrustWalletCore (2.4.1):
- TrustWalletCore/Core (= 2.4.1)
- TrustWalletCore/Core (2.4.1):
- TrustWalletCore/Types
- TrustWalletCore/Types (2.2.10):
- TrustWalletCore/Types (2.4.1):
- SwiftProtobuf
- TrustWeb3Provider (0.4.0)

Expand All @@ -23,10 +23,10 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
SwiftProtobuf: 4ef85479c18ca85b5482b343df9c319c62bda699
TrustWalletCore: 307d24dbe596bdeb2ae27b64e7b37f908d430773
SwiftProtobuf: ed465ed18402f998fd117f631da27e0168e6b59c
TrustWalletCore: f75b9dad34c938a2139996b016373f880dee5fb2
TrustWeb3Provider: c4fd1102867679e39224abf4449748cb4bd2a3a3

PODFILE CHECKSUM: 8983898624024172b19a1e0acdeeb4229d50f3fd

COCOAPODS: 1.9.3
COCOAPODS: 1.10.0
8 changes: 5 additions & 3 deletions ios/TrustWeb3Provider.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0830;
LastUpgradeCheck = 1170;
LastUpgradeCheck = 1210;
ORGANIZATIONNAME = CocoaPods;
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
Expand Down Expand Up @@ -427,6 +427,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -452,7 +453,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -483,6 +484,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -501,7 +503,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1170"
LastUpgradeVersion = "1210"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,12 @@ class TrustWeb3Provider extends EventEmitter {
// check if it's iframe callback
for (var i = 0; i < window.frames.length; i++) {
const frame = window.frames[i];
if (frame.ethereum.callbacks.has(id)) {
frame.ethereum.sendResponse(id, result);
try {
if (frame.ethereum.callbacks.has(id)) {
frame.ethereum.sendResponse(id, result);
}
} catch (error) {
console.log(`send response to frame error: ${error}`);
}
}
}
Expand Down

0 comments on commit eaa05f5

Please sign in to comment.