Temporary change for testing functions
This commit is contained in:
		@@ -41,7 +41,7 @@ export abstract class DataType {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public decode(calldata: string, rules?: DecodingRules): any {
 | 
					    public decode(calldata: string, rules?: DecodingRules): any {
 | 
				
			||||||
        const rawCalldata = new RawCalldata(calldata, false); // @TODO Sohuld not hardcode false here
 | 
					        const rawCalldata = new RawCalldata(calldata, true); // @TODO Sohuld not hardcode false here
 | 
				
			||||||
        const rules_ = rules ? rules : DataType.DEFAULT_DECODING_RULES;
 | 
					        const rules_ = rules ? rules : DataType.DEFAULT_DECODING_RULES;
 | 
				
			||||||
        const value = this.generateValue(rawCalldata, rules_);
 | 
					        const value = this.generateValue(rawCalldata, rules_);
 | 
				
			||||||
        return value;
 | 
					        return value;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,12 +11,7 @@ chaiSetup.configure();
 | 
				
			|||||||
const expect = chai.expect;
 | 
					const expect = chai.expect;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
describe.only('ABI Encoder', () => {
 | 
					describe.only('ABI Encoder', () => {
 | 
				
			||||||
    describe.only('Optimizer', () => {
 | 
					    describe('Optimizer', () => {
 | 
				
			||||||
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    describe('ABI Tests at Method Level', () => {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        it('Should reuse duplicated strings in string array', async () => {
 | 
					        it('Should reuse duplicated strings in string array', async () => {
 | 
				
			||||||
            const method = new AbiEncoder.Method(AbiSamples.GAbi);
 | 
					            const method = new AbiEncoder.Method(AbiSamples.GAbi);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -147,7 +142,9 @@ describe.only('ABI Encoder', () => {
 | 
				
			|||||||
            console.log(JSON.stringify(decodedArgs));
 | 
					            console.log(JSON.stringify(decodedArgs));
 | 
				
			||||||
            expect(decodedArgsJson).to.be.equal(argsJson);
 | 
					            expect(decodedArgsJson).to.be.equal(argsJson);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    describe.only('ABI Tests at Method Level', () => {
 | 
				
			||||||
        it('Crazy ABI', async () => {
 | 
					        it('Crazy ABI', async () => {
 | 
				
			||||||
            const method = new AbiEncoder.Method(AbiSamples.crazyAbi);
 | 
					            const method = new AbiEncoder.Method(AbiSamples.crazyAbi);
 | 
				
			||||||
            console.log(method.getSignature());
 | 
					            console.log(method.getSignature());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user