Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitshare Js Transfer failed with error (Not defined in console) #25

Open
VitalJeevanjot opened this issue May 19, 2019 · 4 comments
Open

Comments

@VitalJeevanjot
Copy link

I would like to point out that with both Bitshare-Js in raw HTML or using Vue boilerplate I get this error whenever I sign and broadcast the transaction

Steps to reproduce it...

<script src="beet-js.js"></script>

<script>
beet.get("BitShares Transfer Example", "BTS_TEST", true).then(app => {
    app.BTS_TEST.transfer(
        {
            to: "jeevan-jot",
            amount:
                {
                    satoshis: 300000,
                    asset_id: "1.3.0"
                }
        }
    ).then(result => {
        console.log("Success", result);
    }).catch(err => {
        console.error(err);
    });
}).catch(err => {
    console.error(err);
});
</script>

Use this html and then make the transaction (Both gives this error BTS_TEST and BTS (Main net))

2019-05-19 (10)
2019-05-19 (11)
2019-05-19 (13)

and the Vue code is...

        let app = await this.$beet.connect()
        console.log(app.getAccount().name)
        console.log(app.getAccount())
        app.transfer({
          to: this.btsname.toString().trim(),
          amount: {
            satoshis: parseInt(this.tbts),
            asset_id: '1.3.0'
          }
        })

(Sorry for those spaces)

2019-05-18 (36)
2019-05-18 (34)

@sschiessl-bcp
Copy link
Collaborator

It looks correct. What does Beet console say? Push Ctrl+shift+I or start beet from cloned repo

@VitalJeevanjot
Copy link
Author

@sschiessl-bcp Thank you for the reply, I tried installing locally (with python installed) on Windows 10, But That gives an error while installing electron and Ctrl+Shift+I not working, I tried many times over beet GUI and Ctrl+Alt+I not working as well and F12 already tried but not worked. Can you try my code over your system please if you don't have any problem with that?

@sschiessl-bcp
Copy link
Collaborator

This is working now, correct?

@VitalJeevanjot
Copy link
Author

@sschiessl-bcp , Yup, you solved the bug, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants