You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ts/index.ts
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -137,3 +137,32 @@ export namespace log {
137
137
log.log(Level.DEBUG,format(msg,args));
138
138
}
139
139
}
140
+
141
+
/**
142
+
* Helper functions for Ethereum.
143
+
*/
144
+
exportnamespaceEthereumUtils{
145
+
/**
146
+
* Returns the contract address that would result from the given CREATE2 call.
147
+
* @param from The Ethereum address of the account that is initiating the contract creation.
148
+
* @param salt A 32-byte value that is used to create a deterministic address for the contract. This can be any arbitrary value, but it should be unique to the contract being created.
149
+
* @param initCodeHash he compiled code that will be executed when the contract is created. This should be a hex-encoded string that represents the compiled bytecode.
150
+
* @returns Address of the contract that would be created.
0 commit comments