Skip to content

Commit

Permalink
adjust ProofRpcModuleTests expected values
Browse files Browse the repository at this point in the history
  • Loading branch information
Demuirgos committed Oct 19, 2023
1 parent 32722b9 commit 88e0214
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public async Task Can_call_with_storage_load()
.Done;

CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(1));
Assert.That(result.Accounts.Length, Is.EqualTo(2));
}

[TestCase]
Expand All @@ -363,7 +363,7 @@ public async Task Can_call_with_many_storage_loads()
.Op(Instruction.SLOAD)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(1));
Assert.That(result.Accounts.Length, Is.EqualTo(2));
}

[TestCase]
Expand All @@ -376,7 +376,7 @@ public async Task Can_call_with_storage_write()
.Done;

CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(1));
Assert.That(result.Accounts.Length, Is.EqualTo(2));
}

[TestCase]
Expand All @@ -390,7 +390,7 @@ public async Task Can_call_with_extcodecopy()
.Op(Instruction.EXTCODECOPY)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(3));
}

[TestCase]
Expand All @@ -404,7 +404,7 @@ public async Task Can_call_with_extcodecopy_to_system_account()
.Op(Instruction.EXTCODECOPY)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(1));
}

[TestCase]
Expand All @@ -415,7 +415,7 @@ public async Task Can_call_with_extcodesize()
.Op(Instruction.EXTCODESIZE)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(3));
}

[TestCase]
Expand All @@ -426,7 +426,7 @@ public async Task Can_call_with_extcodesize_to_system_account()
.Op(Instruction.EXTCODESIZE)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(1));
}

[TestCase]
Expand All @@ -438,7 +438,7 @@ public async Task Can_call_with_extcodehash()
.Op(Instruction.EXTCODEHASH)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(3));
}

[TestCase]
Expand All @@ -450,7 +450,7 @@ public async Task Can_call_with_extcodehash_to_system_account()
.Op(Instruction.EXTCODEHASH)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(1));
}

[TestCase]
Expand All @@ -461,7 +461,7 @@ public async Task Can_call_with_just_basic_addresses()
.Op(Instruction.STOP)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(1));
Assert.That(result.Accounts.Length, Is.EqualTo(2));
}

[TestCase]
Expand All @@ -486,7 +486,7 @@ public async Task Can_call_with_self_balance()
.Done;

CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(1));
Assert.That(result.Accounts.Length, Is.EqualTo(2));
}

[TestCase]
Expand All @@ -498,7 +498,7 @@ public async Task Can_call_with_balance_of_system_account()
.Op(Instruction.BALANCE)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(1));
}

[TestCase]
Expand Down Expand Up @@ -550,7 +550,7 @@ public async Task Can_call_with_delegate_call_to_system_account()
.Op(Instruction.DELEGATECALL)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(1));
}

[TestCase]
Expand Down Expand Up @@ -586,7 +586,7 @@ public async Task Can_call_with_call_with_zero_value()
.Op(Instruction.CALL)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(3));
}

[TestCase]
Expand All @@ -603,7 +603,7 @@ public async Task Can_call_with_static_call()
.Op(Instruction.STATICCALL)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(3));
}

[TestCase]
Expand All @@ -620,7 +620,7 @@ public async Task Can_call_with_delegate_call()
.Op(Instruction.DELEGATECALL)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(3));
Assert.That(result.Accounts.Length, Is.EqualTo(2));
}

[TestCase]
Expand All @@ -638,7 +638,7 @@ public async Task Can_call_with_call_with_non_zero_value()
.Op(Instruction.CALL)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(3));
}

[TestCase]
Expand All @@ -651,7 +651,7 @@ public async Task Can_call_with_self_destruct()
.Done;
CallResultWithProof result = await TestCallWithCode(code);

Assert.That(result.Accounts.Length, Is.EqualTo(2));
Assert.That(result.Accounts.Length, Is.EqualTo(3));
}

[TestCase]
Expand Down Expand Up @@ -679,7 +679,7 @@ public async Task Can_call_with_many_storage_writes()
.Op(Instruction.SSTORE)
.Done;
CallResultWithProof result = await TestCallWithCode(code);
Assert.That(result.Accounts.Length, Is.EqualTo(1));
Assert.That(result.Accounts.Length, Is.EqualTo(2));
}

[TestCase]
Expand Down

0 comments on commit 88e0214

Please sign in to comment.