Comments (13)
If the
amount
passed to themint
eth contract call does not match theamount
in theout
query, it will fail.
https://cn.etherscan.com/tx/0x2eeafff823c475b6449f7a684a4ab5b38da6d49707da20eb46669740571cd8d3. The withdrawal was successful. Thank you for your help。
from ren-js.
from ren-js.
The transaction you provided was successful on RenVM - https://mainnet.renproject.io/renvm/tx/0xa1b08de754bd589d8973d5c2411aa207379909e363fbe5669f118c653d74e774
Can you try to submit via the dev-tools to receive your renBTC https://renproject.github.io/dev-tools/ with the tx hash obCN51S9WJ2Jc9XCQRqiBzeZCeNj++VmnxGMZT1053Q= ?
Also what parameters did you use to construct the ren-js object?
Did you successfully test on testnet beforehand?
from ren-js.
ren-js construct parameters
("BTC","mainnet","https://mainnet.infura.io","0x","0x0000000000000000000000000000000000000000000000008a1f7f3230822334");
Can you tell me the reason? @TheAncientGoat
from ren-js.
Those parameters do not match any of the functoin calls exposed in renjs v2.0 - can you please provide a code snippet demonstrating the issue?
Also did the dev-tools tx submission work?
from ren-js.
https://github.com/lishuailibertine/RenBrigeAcrossChain/blob/main/renBrigeTest/App/acrosschain.js; This is a demo where the parameters are changed to the ones posted above; I want to achieve cross-chain through this SDK, the withdrawal part of the code is implemented in the app
@TheAncientGoat
from ren-js.
The code makes sense, but I don't see where deposit.signed
and deposit.submit
is being called (as I can see the ethereum txs you made previously, I assume this is happening somewhere?)
from ren-js.
Yes, the logic code for signing and depositing is implemented elsewhere. The signed data is returned by the REN SDK。 Not quite sure what went wrong。Etherscan tx : https://cn.etherscan.com/tx/0x0d507d8bf904dfbaeac20507c66c6cd09084ee0696cf0cce9214165e860770d5. It has the signature information that I submitted.
@TheAncientGoat
from ren-js.
If you call .sign
and .submit
from your accrosschain.js
script, you can check that the generated signatures are correct. I suspect there is an issue in how you are passing the transaction data from the script you have provided to the script that is signing / submitting the signatures.
from ren-js.
The callback(JSON.stringify(deposit._state),null)
is suspect - if you try and resume the transaction with that data using JSON.parse
it will fail, as not all of the state is serializable to JSON.
from ren-js.
There is a flat 100,000 satoshi fee for btc tx fee; so that gets deducted from the transferred amount. This will be adjusted to a dynamic amount in the next network upgrade
from ren-js.
There is a flat 100,000 satoshi fee for btc tx fee; so that gets deducted from the transferred amount. This will be adjusted to a dynamic amount in the next network upgrade
So the reason for the withdrawal failure is this amount? 😂
from ren-js.
If the amount
passed to the mint
eth contract call does not match the amount
in the out
query, it will fail.
from ren-js.
Related Issues (20)
- FIL Transaction failure HOT 3
- "Filecoin.StateListMessages" fail
- Is there a way to sign transactions from smart contracts? HOT 1
- Metamask RPC error while burning $testBTC on Kovan
- links in readme wrong
- Typo in RenJs docs HOT 1
- Error: error code: 1016
- Reliable GatewayJS storage HOT 1
- Validate GatewayJS and RenJS inputs
- View past GatewayJS transfers at gateway.renproject.io HOT 1
- Allow developers to configure/override RenJS dependencies HOT 1
- Handle multiple deposits to gateway address in GatewayJS HOT 1
- Show network in GatewayJS if not on Mainnet HOT 1
- Bridge not working when Brave Shields are UP HOT 2
- Handle users changing account in Web3 wallet HOT 1
- Sats utill sometimes returns float
- @renproject/gateway imports old darknode-sol contracts HOT 1
- Error [amount [29941] lower than minumum burn amount [70547]] HOT 1
- How to restore a transaction with BTC TXID? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ren-js.