Giter VIP home page Giter VIP logo

dbank's People

Contributors

xternet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dbank's Issues

erc721

can you make a staking dapp ui for erc721

RPC Error: Internal JSON-RPC error - VM Exception while processing transaction

I tried Payoff feature but facing following error, any suggestion to fix?

My code - https://github.com/yao23/Blockchain_Playground

Chrome - Version 90.0.4430.212 (Official Build) (x86_64)

Error message:

MetaMask - RPC Error: Internal JSON-RPC error. {code: -32603, message: "Internal JSON-RPC error.", data: {…}}
(anonymous) @ inpage.js:1
(anonymous) @ inpage.js:17
_runReturnHandlers @ inpage.js:17
_processRequest @ inpage.js:17
async function (async)
_processRequest @ inpage.js:17
_handle @ inpage.js:17
handle @ inpage.js:17
_rpcRequest @ inpage.js:1
sendAsync @ inpage.js:1
push../node_modules/web3-core-requestmanager/src/index.js.RequestManager.send @ index.js:132
sendRequest @ index.js:705
send @ index.js:726
_executeMethod @ index.js:920
_callee6$ @ App.js:90
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
payOff @ App.js:91
onClick @ App.js:225
callCallback @ react-dom.development.js:188
invokeGuardedCallbackDev @ react-dom.development.js:237
invokeGuardedCallback @ react-dom.development.js:292
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:306
executeDispatch @ react-dom.development.js:389
executeDispatchesInOrder @ react-dom.development.js:414
executeDispatchesAndRelease @ react-dom.development.js:3278
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:3287
forEachAccumulated @ react-dom.development.js:3259
runEventsInBatch @ react-dom.development.js:3304
runExtractedPluginEventsInBatch @ react-dom.development.js:3514
handleTopLevel @ react-dom.development.js:3558
batchedEventUpdates$1 @ react-dom.development.js:21871
batchedEventUpdates @ react-dom.development.js:795
dispatchEventForLegacyPluginEventSystem @ react-dom.development.js:3568
attemptToDispatchEvent @ react-dom.development.js:4267
dispatchEvent @ react-dom.development.js:4189
unstable_runWithPriority @ scheduler.development.js:653
runWithPriority$1 @ react-dom.development.js:11039
discreteUpdates$1 @ react-dom.development.js:21887
discreteUpdates @ react-dom.development.js:806
dispatchDiscreteEvent @ react-dom.development.js:4168
Show 15 more frames
App.js:101 Error, pay off:  Error: Internal JSON-RPC error.
{
  "message": "VM Exception while processing transaction: revert",
  "code": -32000,
  "data": {
    "0xa10ec14ba1fc668ddf06bdd9267d86c4c2426933d4613b9b7d76f5471e28758c": {
      "error": "revert",
      "program_counter": 117,
      "return": "0x"
    },
    "stack": "RuntimeError: VM Exception while processing transaction: revert\n    at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:94:13)\n    at /Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:568:26",
    "name": "RuntimeError"
  }
}
    at Object._fireError (index.js:57)
    at sendTxCallback (index.js:614)
    at index.js:136
    at s._handle (inpage.js:17)
index.js:57 Uncaught (in promise) Error: Internal JSON-RPC error.
{
  "message": "VM Exception while processing transaction: revert",
  "code": -32000,
  "data": {
    "0xa10ec14ba1fc668ddf06bdd9267d86c4c2426933d4613b9b7d76f5471e28758c": {
      "error": "revert",
      "program_counter": 117,
      "return": "0x"
    },
    "stack": "RuntimeError: VM Exception while processing transaction: revert\n    at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:94:13)\n    at /Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:568:26",
    "name": "RuntimeError"
  }
}
    at Object._fireError (index.js:57)
    at sendTxCallback (index.js:614)
    at index.js:136
    at s._handle (inpage.js:17)

Screen Shot 2021-05-22 at 1 56 14 PM

Invalid JSON RPC response

Trying to go through the tutorial, truffle migrate is throwing an error trying to connect to the "network" but I don't think the context of this error has been covered error, have no idea how to move forward.

dbank % truffle migrate                            (starter_kit) dbank ?*

Compiling your contracts...
===========================
✔ Fetching solc version list from solc-bin. Attempt #1
> Everything is up to date, there is nothing to compile.

> Something went wrong while attempting to connect to the network. Check your network configuration.
Invalid JSON RPC response: "Error: connect ECONNREFUSED 127.0.0.1:7545\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)"
Truffle v5.2.4 (core: 5.2.4)
Node v12.20.1

More than one deposit triggers error, the reason ?

Hi .

I built and run the dbank, but I am just able to deposit one time . this means that if I start deposit for example 2 ETH, after completing the 2 ETH transfer, I am unable to do another deposit. I am getting error in this case .

Seems there is a problem in implementation, as a solution I should do one withdraw to solve the problem.

So say :

  1. 1 Deposit : successful
  2. 1 Deposit : Error

Triggers error for me, but :

  1. 1 Deposit : successful
  2. 1 Withdraw : successful
  3. 1 Deposit : successful

Any reason behind this?

To be sure about the code, I just cloned this repository for tests rather than the code I'm writing along with the youtube video tut.

Thanks.

Error when compile: TypeError: Cannot convert undefined or null to object

Get following error when compile, any idea ?

$ truffle migrate

Compiling your contracts...
===========================
✔ Fetching solc version list from solc-bin. Attempt #1
Error: TypeError: Cannot convert undefined or null to object
    at VersionRange.load (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/compilerSupplier/loadingStrategies/VersionRange.js:207:1)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at CompilerSupplier.load (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/compilerSupplier/index.js:71:1)
    at loadParser (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/profiler/loadParser.js:15:29)
    at Object.requiredSources (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/profiler/index.js:19:1)
    at Object.sourcesWithDependencies (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/index.js:125:45)
    at necessary (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/index.js:92:1)
    at /home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/index.js:35:1
    at async Promise.all (index 0)
    at compile (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/index.js:25:1)
    at Object.compile (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/index.js:68:47)
    at Object.compileAndSave (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/index.js:95:47)
    at Object.run (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:199:1)
    at Command.run (/home/eric/.nvm/versions/node/v14.17.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:172:1)
Truffle v5.4.5 (core: 5.4.5)
Node v14.17.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.