store expected session index not current
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
4ffa0f4b17
commit
419cbde251
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.4.5",
|
"version": "0.4.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -280,8 +280,11 @@ const Bridge = ({ chainId, address, config, connect }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const storeTransactionHash = (txHash, receiver, amount) => {
|
const storeTransactionHash = (txHash, receiver, amount) => {
|
||||||
|
const expectedSessionIndex = (currentSession ?? 0) + (evmNetwork
|
||||||
|
? Number((evmNetwork.avg_block_speed * evmNetwork.finality_delay) / (1000n * 14400n))
|
||||||
|
: 0);
|
||||||
const transaction = {
|
const transaction = {
|
||||||
sessionIndex: currentSession ?? 0,
|
sessionIndex: expectedSessionIndex,
|
||||||
transactionHash: txHash,
|
transactionHash: txHash,
|
||||||
receiverAddress: receiver,
|
receiverAddress: receiver,
|
||||||
amount: amount,
|
amount: amount,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user