Skip to content

Commit 7396442

Browse files
committed
Fix mock
1 parent 6c77c48 commit 7396442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/contract-mock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = class MockContract {
2727
case 'd202158d':
2828
return this._d202158d(`0x${methodParams.substring(0, 32 * 2)}`);
2929
default:
30-
return nil, fmt.Errorf('Unexpected method %v', methodCall);
30+
throw new Error(`Unexpected method ${methodCall}`);
3131
}
3232
}
3333

0 commit comments

Comments
 (0)