File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Assets/Dojo/Plugins/WebGL Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,26 @@ mergeInto(LibraryManager.library, {
23
23
} , { } )
24
24
}
25
25
26
- window . provider = new ControllerProvider ( opts )
26
+ window . controllerProvider = new ControllerProvider ( opts )
27
+ } ,
28
+ Probe : function ( cb ) {
29
+ window . controllerProvider . probe ( ) . then ( ( account ) => {
30
+ dynCall_vi ( cb , account ? true : false )
31
+ } )
32
+ } ,
33
+ Connect : function ( cb ) {
34
+ window . controllerProvider . connect ( ) . then ( ( account ) => {
35
+ dynCall_vi ( cb , account ? true : false )
36
+ } )
37
+ } ,
38
+ Disconnect : function ( cb ) {
39
+ window . controllerProvider . disconnect ( ) . then ( ( ) => {
40
+ dynCall_vi ( cb )
41
+ } )
42
+ } ,
43
+ Execute : function ( cb , calls ) {
44
+ window . controllerProvider . account . execute ( JSON . parse ( UTF8ToString ( calls ) ) ) . then ( ( result ) => {
45
+ dynCall_vi ( cb , result . transaction_hash )
46
+ } )
27
47
}
28
48
} ) ;
You can’t perform that action at this time.
0 commit comments