Skip to content

Commit ec5e76c

Browse files
committed
fix: Ensure TX event listener is registered when using ViewBinding.setTokenScript()
1 parent 59ab35e commit ec5e76c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/tokenscript-viewer/src/integration/abstractViewBinding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export abstract class AbstractViewBinding implements IViewBinding {
3535

3636
setViewController(viewController: ViewController){
3737
this._viewController = viewController;
38-
this.tokenScript = viewController.tokenScript;
38+
this.setTokenScript(viewController.tokenScript);
3939
}
4040

4141
get viewController() {

0 commit comments

Comments
 (0)