Skip to content

Commit e1286b0

Browse files
committed
updated rebaseNonce
1 parent 5841181 commit e1286b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/wallets/walletNonce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const rebaseNonce = async (chainId: number, walletAddress: Address) => {
143143
const script = `
144144
local transactionCount = tonumber(ARGV[1])
145145
local lastUsedNonce = tonumber(redis.call('get', KEYS[1]))
146-
local nextNonce = math.max(transactionCount, lastUsedNonce)
146+
local nextNonce = math.max(transactionCount-1, lastUsedNonce)
147147
redis.call('set', KEYS[1], nextNonce)
148148
return nextNonce
149149
`;

0 commit comments

Comments
 (0)