Skip to content

Commit

Permalink
Add instance number
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Jun 17, 2024
1 parent c467c15 commit a00607b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/supranet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class Supranet {
if (!hash) hash = Math.random().toString(36).substring(2,18);

try {
const instance = (await Runtime.Blockchain.getEndpointInstance(endpoint, hash, endpoint.instance_number))!;
const instance = (await Runtime.Blockchain.getEndpointInstance(endpoint, hash, endpoint.instance_number+1))!;
// makes sure hash is set in cache
hashes.set(instance, hash);
// set endpoint to instace
Expand Down

0 comments on commit a00607b

Please sign in to comment.