We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8c631 commit 55411c0Copy full SHA for 55411c0
tests/Unit/Utils/AbiDecoderTest.php
@@ -50,4 +50,15 @@ public function should_decode_multipayment_payload()
50
'args' => $args,
51
], $decodedData);
52
}
53
+
54
+ /** @test */
55
+ public function it_should_decode_function_with_abi()
56
+ {
57
+ $functionSignature = 'function name() view returns (string)';
58
+ $payload = '0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000064441524b32300000000000000000000000000000000000000000000000000000';
59
60
+ $decoded = AbiDecoder::decodeFunctionWithAbi($functionSignature, $payload);
61
62
+ $this->assertSame(['DARK20'], $decoded);
63
+ }
64
0 commit comments