accounts/abi/bind/backends: reverted some stylistic changes (#21535)

This commit is contained in:
Marius van der Wijden
2020-09-09 15:21:20 +02:00
committed by GitHub
parent 8d35b1eb2b
commit d81c9d9b76
2 changed files with 25 additions and 25 deletions

View File

@ -1086,12 +1086,12 @@ func TestSimulatedBackend_CallContractRevert(t *testing.T) {
t.Errorf("result from %v was not nil: %v", key, res)
}
if val != nil {
rErr, ok := err.(*revertError)
rerr, ok := err.(*revertError)
if !ok {
t.Errorf("expect revert error")
}
if rErr.Error() != "execution reverted: "+val.(string) {
t.Errorf("error was malformed: got %v want %v", rErr.Error(), val)
if rerr.Error() != "execution reverted: "+val.(string) {
t.Errorf("error was malformed: got %v want %v", rerr.Error(), val)
}
} else {
// revert(0x0,0x0)