Skip to content

Commit f10ab03

Browse files
Implement Context.call with type as a first argument (#13)
1 parent b2de5a0 commit f10ab03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittest/src/main/java/score/Context.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static Object call(BigInteger value,
9595

9696
public static<T> T call(Class<T> cls,
9797
Address targetAddress, String method, Object... params) {
98-
return null;
98+
return cls.cast(call(targetAddress, method, params));
9999
}
100100

101101
public static Object call(Address targetAddress, String method, Object... params) {

0 commit comments

Comments
 (0)