2020-11-23 18:06:44 +00:00
|
|
|
pragma abicoder v2;
|
2019-02-28 22:49:03 +00:00
|
|
|
contract test {
|
|
|
|
function a(bytes32 h, uint8 v, bytes32 r, bytes32 s) public returns (address addr) {
|
|
|
|
return ecrecover(h, v, r, s);
|
|
|
|
}
|
|
|
|
}
|
2020-05-04 23:15:55 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2019-02-28 22:49:03 +00:00
|
|
|
// ----
|
|
|
|
// a(bytes32,uint8,bytes32,bytes32):
|
|
|
|
// 0x18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c,
|
|
|
|
// 28,
|
|
|
|
// 0x73b1693892219d736caba55bdb67216e485557ea6b6af75f37096c9aa6a5a75f,
|
|
|
|
// 0xeeb940b1d03b21e36b0e47e79769f095fe2ab855bd91e3a38756b7d75a9c4549
|
|
|
|
// -> 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
|