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

Uncaught (in promise) Error: The send transactions "from" field must be defined! #20

Closed
ghost opened this issue Feb 18, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 18, 2022

I ran into an error like this.

Uncaught (in promise) Error: The send transactions "from" field must be defined!
at Object.createTask (app.js:98:28)
at HTMLFormElement.onsubmit ((index):53:74)

this is my createtask.
createTask: async () => {
App.setLoading(true)
const content = $('#newTask').val()
await App.todoList.createTask(content, {from: App.account})
window.location.reload()
},

index
<div class="container-fluid"> <div class="row"> <main role="main" class="d-flex col-lg-12 justify-content-center"> <div id="loader" class="text-center"> <p class="text-center">Loading...</p> </div> <div id="content"> <form onsubmit="App.createTask(); return false;"> <input type="text" class="form-control" id="newTask" placeholder="Add new task.." required> <input type="submit" hidden=""> </form> <ul id="taskList" class="list-unstyled"> <div id="taskTemplate" class="checkbox" style="display: none"> <label> <input type="checkbox"> <span class="content">Task content...</span> </label> </div> </ul> <ul id="completedTaskList" class="list-unstyled"> </ul> </div> </main> </div> </div>

help me

@ghost
Copy link
Author

ghost commented Feb 18, 2022

when I tried this, I ran another error.
like this.
Uncaught (in promise) Error: Returned error: sender account not recognized
at Object.createTask (app.js:98:28)

@ghost
Copy link
Author

ghost commented Feb 18, 2022

This was a problem on the metamask side. I solved it.

@ghost ghost closed this as completed Feb 18, 2022
This issue was closed.
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

0 participants